Skip to content

Commit 46e3256

Browse files
committed
Updated reference and removed some not need imports
1 parent 40896ea commit 46e3256

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

1-Authentication/7-sign-in-express-mfa/App/auth/AuthProvider.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class AuthProvider {
7878
// Decode the access token payload
7979
const tokenPayload = JSON.parse(atob(token.split('.')[1]));
8080
console.log(tokenPayload);
81+
// More infromation about the "mfa" can be found here.
82+
// https://learn.microsoft.com/en-us/entra/identity-platform/access-token-claims-reference
8183
return !tokenPayload.amr.includes("mfa");
8284
}
8385

0 commit comments

Comments
 (0)