mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
test
This commit is contained in:
parent
07e1ae9986
commit
69da8bc3db
1 changed files with 2 additions and 5 deletions
|
|
@ -15,10 +15,6 @@ const {
|
|||
|
||||
type OauthProvider = "google";
|
||||
|
||||
const baseUrl = process.env.VERCEL_URL
|
||||
? `https://${process.env.VERCEL_URL}`
|
||||
: "https://assessment-model-git-main-hestiahomes.vercel.app/"; // Fallback for local development
|
||||
|
||||
// TODO: handle token expiration
|
||||
// https://next-auth.js.org/v3/tutorials/refresh-token-rotation
|
||||
// propertly set options too
|
||||
|
|
@ -46,7 +42,8 @@ export const AuthOptions: NextAuthOptions = {
|
|||
params: {
|
||||
scope: `https://${process.env.AZURE_AD_B2C_TENANT_NAME}.onmicrosoft.com/api/demo.read https://${process.env.AZURE_AD_B2C_TENANT_NAME}.onmicrosoft.com/api/demo.write offline_access openid`,
|
||||
prompt: "consent",
|
||||
redirect_uri: `${baseUrl}/api/auth/callback/azure-ad-b2c`,
|
||||
redirect_uri:
|
||||
"https://assessment-model-git-main-hestiahomes.vercel.app/api/auth/callback/azure-ad-b2c",
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue