feat: Add successRedirectUrl to auth options (#6792)
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user