Skip to main content
Authentication state for email-based accounts

Properties

PropertyTypeDescription
userCreateAccountResponse | InitAuthResponseUser data from createAccount or initAuth (email pending verification)
accountCompleteAuthAndCreateAccountResponse | CompleteAuthResponseComplete account data after OTP verification
sessionSecretsSessionSecretsSession secrets for transaction signing (ephemeral)
isAuthenticatedbooleanWhether user is fully authenticated
isExistingUserbooleanWhether this is an existing user (login) or new user (signup)
sessionStatusSessionStatusCurrent session status (active, needs_refresh, expired, unauthenticated)
sessionExpiresAtnumberUnix timestamp (seconds) when the session expires, or null if not available
isLoadingbooleanLoading state for async operations (operation name if loading)
loadingOperation?string-
errorstringError state
errorCode?string-