Ship Mobile Fast comes with pre-built authentication flows using Expo’s SecureStore and your choice of authentication providers.
Sign In With Email/Password
signIn
function.Sign Up With Email/Password
signUp
function.Sign In With Google
signInWithGoogle
function.Sign In With Apple
signInWithApple
function.Create Session From URL
createSessionFromUrl
function.Handle Show Password
handleShowPassword
function.Error Handling
handleError
function.Send New Password Link
sendNewPasswordLink
function.Set New Password
setNewPassword
function.Sign Out
signOut
function.Send Magic Link
sendMagicLink
function.Value | Type | Description | |
---|---|---|---|
user | UserMetaData | null | Contains current authenticated user information | |
session | Session | null | Contains active session information | |
initialized | boolean | Indicates if auth state has been initialized | |
signOut | () => Promise<void> | Signs out the current user | |
signIn | (email: string, password: string) => Promise<void> | Signs in user with email/password | |
signUp | (email: string, password: string) => Promise<void> | Creates a new user account | |
sendMagicLink | (email: string) => Promise<void> | Sends a magic link to user’s email | |
signInWithGoogle | () => Promise<void> | Initiates Google OAuth sign in | |
signInWithApple | () => Promise<void> | Initiates Apple OAuth sign in | |
createSessionFromUrl | (url: string) => Promise<void> | Creates session from URL | |
handleShowPassword | () => void | Toggles password visibility | |
isLoading | boolean | Indicates if auth operation is in progress | |
error | Error | null | Contains error information if any | |
isAuthenticated | boolean | Indicates if user is authenticated | |
showPassword | boolean | Controls password visibility state | |
handleError | `(error: AuthError | Error) => void` | Handles auth-related errors |
sendNewPasswordLink | (email: string) => Promise<void> | Sends password reset link | |
setNewPassword | (password: string) => Promise<void> | Sets new password |