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:
@@ -20,6 +20,10 @@ function getLoginType(user: User) {
|
||||
|
||||
async function refreshTokens(token: JWT) {
|
||||
try {
|
||||
if (!token.refresh_token) {
|
||||
throw "Refresh token missing."
|
||||
}
|
||||
|
||||
console.log("token-debug Access token expired, trying to refresh it.", {
|
||||
expires_at: token.expires_at,
|
||||
sub: token.sub,
|
||||
|
||||
Reference in New Issue
Block a user