Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

NiuAuthClient

Generated from the checked-in source. Do not edit this reference by hand.

SDK source. All SDK types.

TypeScript
constructor(options?: NiuAuthOptions);
TypeScript
#private;
TypeScript
/** Public capability discovery, independent of sign-in success. */
getMemberAuthenticationConfiguration(options?: RequestOptions): Promise<{
password_login: boolean;
browser_token_login?: boolean;
}>;
TypeScript
signIn(input: {
email: string;
password: string;
}, options?: RequestOptions): Promise<MemberSignIn>;
TypeScript
signOut(token: string, options?: RequestOptions): Promise<void>;
TypeScript
/** Prove the current password and revoke every own session on success. */
changePassword(token: string, input: {
current_password: string;
password: string;
}, options?: RequestOptions): Promise<{
revision: number;
sign_in_required: true;
}>;