UNPKG

signalk-server

Version:

An implementation of a [Signal K](http://signalk.org) server for boats.

16 lines 730 B
import { OIDCUserInfo } from './types'; /** * Decode the payload of a JWT token (without verification) * NOTE: This should only be used for debugging or after the token has been * properly validated using validateIdToken(). For production use, always * validate the token first using the id-token-validation module. */ export declare function decodeIdToken(idToken: string): Record<string, unknown>; /** * Extract user information from an ID token * @param idToken The ID token string * @returns User information extracted from claims * @throws OIDCError if the token is invalid or missing required claims */ export declare function extractUserInfo(idToken: string): OIDCUserInfo; //# sourceMappingURL=user-info.d.ts.map