@5minds/processcube_app_sdk
Version:
The SDK for ProcessCube Apps
24 lines (23 loc) • 914 B
TypeScript
import { CallbacksOptions, Session } from 'next-auth';
import type { JWT } from 'next-auth/jwt';
/**
*
* @returns {Boolean} A boolean whether the user has the claim or not
*/
export declare function hasClaim(claim: string): Promise<boolean>;
/**
*
* This function passes the {@link Account}'s {@link Account.access_token} and {@link Account.id_token} to the generated {@link JWT}.
*
* @param args The arguments of {@link CallbacksOptions.jwt}.
* @returns A {@link JWT}
*/
export declare function authConfigJwtCallback(args: Parameters<CallbacksOptions['jwt']>[0]): Promise<JWT>;
/**
*
* This function passes the {@link Account.access_token} Claims to the current {@link Session} user.
*
* @param args The arguments of {@link CallbacksOptions.session}.
* @returns A {@link JWT}
*/
export declare function authConfigSessionCallback(args: Parameters<CallbacksOptions['session']>[0]): Promise<Session>;