Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@guardian/identity-auth-frontend

Package Overview
Dependencies
Maintainers
0
Versions
38
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.

  • 6.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1.1K
increased by9.9%
Maintainers
0
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 01 Nov 2024

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc