VestibuleClient class
Constructors
-
VestibuleClient({required String serverUrl, required String tenantId, Transport? transport, GoogleSignIn? googleSignIn, FlutterSecureStorage? secureStorage, bool autoSaveTokens = false})
-
Methods
-
clearTokens()
→ Future<void>
-
Clear stored JWT and refresh token
-
getPublicKey()
→ Future<GetPublicKeyResponse>
-
Get the tenant's public key for JWT verification
-
getStoredJWT()
→ Future<String?>
-
Get stored JWT from secure storage
-
getStoredRefreshToken()
→ Future<String?>
-
Get stored refresh token from secure storage
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshStoredToken()
→ Future<bool>
-
Refresh the stored JWT using the stored refresh token
Returns true if successful, false if no refresh token is stored
-
refreshToken({required String refreshToken})
→ Future<RefreshTokenResponse>
-
Refresh an expired JWT using a refresh token
-
requestOTP({required String recipient, required DeliveryMethod deliveryMethod, int? codeLength, int? ttlSeconds, Map<String, String>? context})
→ Future<RequestOTPResponse>
-
Request an OTP to be sent via email or SMS
-
saveTokens({required String jwt, required String refreshToken})
→ Future<void>
-
Store JWT and refresh token in secure storage
-
signInWithApple({Map<String, String>? context})
→ Future<VerifyAppleTokenResponse>
-
Authenticate with Apple Sign-In
-
signInWithGoogle({Map<String, String>? context})
→ Future<VerifyGoogleTokenResponse>
-
Authenticate with Google Sign-In
-
toString()
→ String
-
A string representation of this object.
inherited
-
verifyAppleToken({required String identityToken, Map<String, String>? context})
→ Future<VerifyAppleTokenResponse>
-
Verify an Apple ID token
-
verifyGoogleToken({required String idToken, Map<String, String>? context})
→ Future<VerifyGoogleTokenResponse>
-
Verify a Google ID token
-
verifyOTP({required String recipient, required String code, String? verifyToken, Map<String, String>? context})
→ Future<VerifyOTPResponse>
-
Verify an OTP code