Constructor
CavosConfig
Initialization
init()
Authentication
login(provider, credentials?, redirectUri?)
EmailNotVerifiedError- Firebase email not verified yetError- Invalid credentials or authentication failed
register(provider, credentials)
EmailVerificationRequiredError- Registration successful, verification email sentErrorwitherror: 'rate_limited'- Too many requests, checkwait_secondspropertyError- Email already registered or invalid input
isEmailVerified(email)
resendVerificationEmail(email)
Errorwitherror: 'rate_limited'- Too many requestsErrorwitherror: 'already_verified'- Email already verifiedError- Failed to send email
- Registration/resend: 60 seconds between emails per user
loginWithGoogle(redirectUri?)
loginWithApple(redirectUri?)
handleCallback(authDataString)
logout()
isAuthenticated()
getUserInfo()
deleteAccount()
Wallet
createWallet()
getAddress()
hasWallet()
getBalance()
getFundingAddress()
isAccountDeployed()
getWalletStatus()
deployAccount()
retryWalletUnlock()
Passkey-Only
hasPasskeyOnlyWallet()
loadPasskeyOnlyWallet()
recoverWalletWithPasskey()
clearPasskeyOnlyWallet()
Transactions
execute(calls, options?)
signMessage(message)
Session
hasActiveSession()
createSession()
registerCurrentSession()
[!IMPORTANT] After this method completes,walletStatus.isSessionActivewill be updated totrue.
revokeSession(sessionKey?)
sessionKey is provided, revokes the current session. Returns transaction hash.
[!NOTE] This operation uses JWT signature verification on-chain.
emergencyRevokeAllSessions()
[!WARNING] This invalidates all sessions immediately. You’ll need to create and register a new session to transact again.
exportSession()
[!NOTE] Only export sessions whenwalletStatus.isSessionActiveistrue.

