@clerk/chrome-extension
Version:
Clerk SDK for Chrome extensions
18 lines • 584 B
TypeScript
import type { GetClientCookieParams } from './cookies';
import type { StorageCache } from './storage';
type JWTHandlerParams = {
frontendApi: string;
} & ({
sync?: false;
} | ({
sync: true;
} & GetClientCookieParams));
export type JWTHandler = ReturnType<typeof JWTHandler>;
export declare function JWTHandler(store: StorageCache, params: JWTHandlerParams): {
get: () => Promise<string>;
poll: (delayInMs?: number) => Promise<void>;
set: (value: string) => Promise<void>;
remove: () => Promise<void>;
};
export {};
//# sourceMappingURL=jwt-handler.d.ts.map