UNPKG

@authup/core-http-kit

Version:

Package containing global constants, types & interfaces.

19 lines 572 B
import type { ClientOptions } from '../../client'; import type { TokenCreator } from '../type'; export type UserTokenCreatorOptions = { client?: ClientOptions; }; export type UserTokenCreatorCredentials = { name: string; password: string; realmId?: string; realmName?: string; }; /** * Create token creator based on password flow. * * @param credentials * @param options */ export declare function createUserTokenCreator(credentials: UserTokenCreatorCredentials, options?: UserTokenCreatorOptions): TokenCreator; //# sourceMappingURL=user.d.ts.map