@nhost/hasura-auth-js
Version:
Hasura-auth client
77 lines (76 loc) • 1.67 kB
TypeScript
import { EmailOTPOptions, NhostSession, PasswordlessOptions, RequestOptions, SignUpOptions, SignUpSecurityKeyOptions } from '../../types';
export type AuthEvents = {
type: 'SESSION_UPDATE';
data: {
session: NhostSession;
};
} | {
type: 'TRY_TOKEN';
token: string;
} | {
type: 'SIGNIN_ANONYMOUS';
} | {
type: 'SIGNIN_PAT';
pat: string;
} | {
type: 'SIGNIN_SECURITY_KEY_EMAIL';
email?: string;
} | {
type: 'SIGNIN_SECURITY_KEY';
} | {
type: 'SIGNIN_PASSWORD';
email?: string;
password?: string;
} | {
type: 'PASSWORDLESS_EMAIL';
email?: string;
options?: PasswordlessOptions;
} | {
type: 'PASSWORDLESS_SMS';
phoneNumber?: string;
options?: PasswordlessOptions;
} | {
type: 'PASSWORDLESS_SMS_OTP';
phoneNumber?: string;
otp?: string;
} | {
type: 'SIGNIN_EMAIL_OTP';
email: string;
options?: EmailOTPOptions;
} | {
type: 'VERIFY_EMAIL_OTP';
email: string;
otp: string;
} | {
type: 'SIGNUP_EMAIL_PASSWORD';
email?: string;
password?: string;
options?: SignUpOptions;
requestOptions?: RequestOptions;
} | {
type: 'SIGNUP_SECURITY_KEY';
email?: string;
options?: SignUpSecurityKeyOptions;
requestOptions?: RequestOptions;
} | {
type: 'SIGNOUT';
all?: boolean;
} | {
type: 'SIGNIN_MFA_TOTP';
ticket?: string;
otp?: string;
} | {
type: 'SIGNED_IN';
} | {
type: 'SIGNED_OUT';
} | {
type: 'TOKEN_CHANGED';
} | {
type: 'AWAIT_EMAIL_VERIFICATION';
} | {
type: 'SIGNIN_ID_TOKEN';
provider: string;
idToken: string;
nonce?: string;
};
//# sourceMappingURL=events.d.ts.map