feat: SW-158 Updated new param loginKey and callback url support

This commit is contained in:
Hrishikesh Vaipurkar
2024-07-23 14:19:48 +02:00
parent e14e3aaffa
commit d3ae62eff1
2 changed files with 28 additions and 43 deletions
+11 -1
View File
@@ -95,7 +95,6 @@ const curityProvider = {
authorization: {
url: `${env.CURITY_ISSUER_USER}/oauth/v2/authorize`,
},
checks: ["pkce", "nonce"],
token: {
url: `${env.CURITY_ISSUER_USER}/oauth/v2/token`,
},
@@ -195,6 +194,17 @@ export const config = {
return token
},
},
cookies: {
callbackUrl: {
name: `Scandic-auth.callback-url`,
options: {
sameSite: "lax",
path: "/",
secure: true,
maxAge: 900,
},
},
},
// events: {
// async signIn() {
// console.log("#### SIGNIN EVENT ARGS ######")