@hellocoop/helper-browser
Version:
Hellō helper functions for the browser
12 lines (11 loc) • 386 B
TypeScript
import type { TokenPayload } from '@hellocoop/definitions';
export type ValidateConfig = {
token: string;
client_id: string;
nonce?: string;
wallet?: string;
};
export interface IntrospectionResponse extends TokenPayload {
active: boolean;
}
export declare function validateToken({ token, client_id, nonce, wallet }: ValidateConfig): Promise<IntrospectionResponse>;