Skip to content

Cell - OAuth2 Core Component ​

The OAuth 2.0 and OpenID Connect vocabulary shared by @celljs/oauth2-client and @celljs/oauth2-jose: authorization requests and responses, access and refresh tokens, grant types, client authentication methods, OIDC scopes, standard claim names, parameter names and error codes (OAuth2Error, OAuth2ErrorCodes).

bash
npm install @celljs/oauth2-core

Applications usually do not depend on it directly: install @celljs/oauth2-client, which brings it in. Import from it when you write your own grant, token store or user service:

ts
import { AuthorizationGrantType, OidcScopes } from '@celljs/oauth2-core';

All exports are backend-only.