Skip to main content

Interface.IAuthService

Authentication service.

See

IKeybanApi

Properties

PropertyTypeDescription
getUser() => Promise<{ birthDate?: string
isAuthenticated() => Promise<boolean>Checks whether the current user is authenticated.
sendOtp(args: AuthSendOtpArgs) => Promise<void>Sends an OTP to email or phone.
signIn(args: AuthSignInArgs) => Promise<{ birthDate?: stringnull; createdAt: string; email: string; emailVerified: boolean; id: string; image?: string
signOut() => Promise<void>Signs out the current user.
updateUser(args: AuthUpdateUserArgs) => Promise<{ birthDate?: stringnull; createdAt: string; email: string; emailVerified: boolean; id: string; image?: string