open-index/open-npm huggingface dataset:
npm package: @guardian/guui
Description: Frontend rendering framework
Author: Simon Adcock
Latest version: 1.4.2

# guui

Frontend rendering framework for theguardian.com. It uses [react](https://reactjs.org/) and [styletron](https://github.com/rtsao/styletron).

Slack channel: [#dotcom-future](https://theguardian.slack.com/messages/C0JES5PEV)

## Requirements
- [node](https://nodejs.org/en/)
  - check the [.nvmrc](https://github.com/guardian/guui/blob/master/.nvmrc) for the current supported version
  - [nvm](https://github.com/creationix/nvm) is probably your best bet here, especially with [this](https://gist.github.com/sndrs/5940e9e8a3f506b287233ed65365befb)
- [yarn](https://yarnpkg.com/en/docs/install)

## Install
`yarn install`

## Develop
`yarn start`

## Build
`yarn build`

## Other
See [the package scripts](https://github.com/guardian/guui/blob/master/package.json#L6) for all other options.
npm package: @guardian/identity-auth-frontend
Description: 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.
Latest version: 18.0.0

# IdentityAuthFrontend

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.

## Usage

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