UNPKG

whodis-react

Version:

React hooks and components for secure, best practices authentication in seconds

11 lines (10 loc) 464 B
import { WhodisAuthTokenClaims } from 'whodis-client'; import { WhodisAuthTokenStorage } from '../../domain/WhodisAuthTokenStorage'; /** * method which returns the authentication claims of a users token, if the user has an authenticatable token * * for declarative usage - see the `useAuthenticationClaims` hook */ export declare const getAuthenticationClaims: ({ storage, }: { storage: WhodisAuthTokenStorage; }) => Promise<WhodisAuthTokenClaims | null>;