feat: Add successRedirectUrl to auth options (#6792)

This commit is contained in:
Oli Juhl
2024-03-25 08:55:21 +01:00
committed by GitHub
parent aa154665de
commit 0deb2776ad
11 changed files with 147 additions and 87 deletions
@@ -13,7 +13,7 @@ export const createAdminUser = async (
adminHeaders,
container?
) => {
await adminSeeder(dbConnection)
const { password_hash } = await adminSeeder(dbConnection)
const appContainer = container ?? getContainer()!
const authModule: IAuthModuleService = appContainer.resolve(
@@ -27,6 +27,9 @@ export const createAdminUser = async (
app_metadata: {
user_id: "admin_user",
},
provider_metadata: {
password: password_hash,
},
})
const token = jwt.sign(authUser, "test")