You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@guardian/identity-auth-frontend

Package Overview
Dependencies
Maintainers
5
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/identity-auth-frontend

A wrapper around [@guardian/identity-auth](../identity-auth/README.md) which manages creating and configuring a IdentityAuth singleton to be used solely on [www.theguardian.com](www.theguardian.com) by DCR, Frontend, and Commercial.

12.0.0
latest
npmnpm
Version published
Weekly downloads
1.1K
12.67%
Maintainers
5
Weekly downloads
 
Created
Source

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();

FAQs

Package last updated on 17 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.