Merged in feat/LOY-230-Microsoft-Entra-ID-Auth (pull request #2113)
Feat(LOY-230): DTMC Routes with Entra ID Auth & Error Page Handling * feat(LOY-230): Link Scandic Friends and Azure accounts * fix(LOY-230): remove employee id param setting * fix(LOY-230): return token in jwt callback for auth.dtmc.ts Approved-by: Michael Zetterberg Approved-by: Christian Andolf
This commit is contained in:
1
apps/scandic-web/types/auth.d.ts
vendored
1
apps/scandic-web/types/auth.d.ts
vendored
@@ -16,6 +16,7 @@ declare module "next-auth" {
|
||||
*/
|
||||
interface Session extends RefreshTokenError {
|
||||
token: JWT
|
||||
employeeId?: string | null
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -34,6 +34,7 @@ export enum LoginTypeEnum {
|
||||
email = "email",
|
||||
"membership number" = "membership number",
|
||||
"email link" = "email link",
|
||||
"dtmc" = "dtmc",
|
||||
}
|
||||
export type LoginType = keyof typeof LoginTypeEnum
|
||||
|
||||
|
||||
7
apps/scandic-web/types/jwt.d.ts
vendored
7
apps/scandic-web/types/jwt.d.ts
vendored
@@ -11,8 +11,9 @@ declare module "next-auth/jwt" {
|
||||
access_token: string
|
||||
expires_at?: number
|
||||
loginType: LoginType
|
||||
mfa_expires_at: number
|
||||
mfa_scope: boolean
|
||||
refresh_token: string
|
||||
mfa_expires_at?: number
|
||||
mfa_scope?: boolean
|
||||
refresh_token?: string
|
||||
employeeId?: string
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user