Skip to content

Commit

Permalink
fix: use Node methods for creating UL theme (auth0-developer-hub#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
guabu authored Aug 14, 2024
1 parent 61543bd commit c0b95f4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions scripts/bootstrap.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -513,8 +513,17 @@ const createUniversalLoginTheme = ora({
}).start()

try {
await $`cat ./themes/universal-login.json`
.pipe`auth0 api post branding/themes`
const theme = await readFile("./themes/universal-login.json", {
encoding: "utf-8",
})

// prettier-ignore
const createUniversalLoginThemeArgs = [
"api", "post", "branding/themes",
"--data", theme,
];

await $`auth0 ${createUniversalLoginThemeArgs}`

createUniversalLoginTheme.succeed()
} catch (e) {
Expand Down

0 comments on commit c0b95f4

Please sign in to comment.