/*! * @license * Copyright Squiz Australia Pty Ltd. All Rights Reserved. */ import * as io from 'io-ts'; /** * The possible auth tokens and their metadata. * @export */ export declare type EntityAuthToken = EntityAuthTokenAccess | EntityAuthTokenId | EntityAuthTokenRefresh; /** * The metadata surrounding the `access_token`, and the raw `access_token` itself. * @export */ export declare type EntityAuthTokenAccess = io.TypeOf; /** * The metadata surrounding the `id_token`, and the raw `id_token` itself. * @export */ export declare type EntityAuthTokenId = io.TypeOf; /** * The metadata surrounding the `refresh_token`, and the raw `refresh_token` itself. * @export */ export declare type EntityAuthTokenRefresh = io.TypeOf; /** * The metadata surrounding the `access_token`, and the raw `access_token` itself. * @export */ export declare const AuthTokenAccess: io.TypeC<{ aud: io.ArrayC; exp: io.NumberC; iat: io.NumberC; iss: io.StringC; scope: io.ArrayC; sub: io.StringC; token: io.StringC; type: io.LiteralC<"Bearer">; variant: io.LiteralC<"access">; }>; /** * The metadata surrounding the `id_token`, and the raw `id_token` itself. * @export */ export declare const AuthTokenId: io.TypeC<{ aud: io.ArrayC; exp: io.NumberC; iat: io.NumberC; iss: io.StringC; sub: io.StringC; token: io.StringC; type: io.LiteralC<"Bearer">; variant: io.LiteralC<"id">; }>; /** * The metadata surrounding the `refresh_token`, and the raw `refresh_token` itself. * @export */ export declare const AuthTokenRefresh: io.TypeC<{ exp: io.NumberC; token: io.StringC; type: io.LiteralC<"Bearer">; variant: io.LiteralC<"refresh">; }>;