4.0.1 • Published 3 days ago
@guardian/identity-auth-frontend v4.0.1
IdentityAuthFrontend
A wrapper around @guardian/identity-auth which manages creating and configuring a IdentityAuth singleton to be used solely on www.theguardian.com by DCR, Frontend, and Commercial.
Usage
import { getIdentityAuth } from '@guardian/identity-auth-frontend';
const identityAuth = getIdentityAuth();
// Check if the user is logged in and return the current auth state
const authState = await identityAuth.isSignedInWithAuthState();
authState.isAuthenticated; // true or false
authState?.accessToken; // the user's access token object
authState?.idToken; // the user's id token object
// or boolean only
const isLoggedIn = await identityAuth.isSignedIn();
4.0.1
3 days ago
0.0.0-canary-20240507155911
4 days ago
0.0.0-canary-20240507160332
4 days ago
0.0.0-canary-20240502224620
9 days ago
0.0.0-canary-20240502163620
9 days ago
0.0.0-canary-20240502162806
9 days ago
0.0.0-canary-20240429155350
12 days ago
4.0.0
2 months ago
0.0.0-canary-20240228094301
2 months ago
0.0.0-canary-20240228110119
2 months ago
3.0.0
4 months ago
2.0.0
5 months ago
1.0.0
9 months ago
0.1.0
9 months ago