KindeFlutterSDK class
Properties
- authState ↔ AuthState?
-
getter/setter pairinherited-setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
completePendingLoginIfNeeded(
) → Future< bool> - Attempts to complete a pending web login flow if auth parameters are present in the current URL.
-
createOrg(
{required String orgName, AuthFlowType? type, String? planInterest, String? pricingTableKey}) → Future< void> -
generatePortalUrl(
{String? returnUrl, CancelToken? cancelToken, Map< String, dynamic> ? headers, Map<String, dynamic> ? extra, ValidateStatus? validateStatus, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress}) → Future<String> - Returns a link to the self-serve portal for the authenticated user. The user can use this link to manage their account, update their profile, and view their entitlements.
-
getBooleanFlag(
{required String code, bool? defaultValue}) → bool? -
inherited
-
getClaim(
{required String claim, TokenType tokenType = TokenType.accessToken}) → Claim -
inherited
-
getFlag(
{required String code, dynamic defaultValue, FlagType? type}) → Flag? -
inherited
-
getIntegerFlag(
{required String code, int? defaultValue}) → int? -
inherited
-
getOrganization(
) → ClaimOrganization -
inherited
-
getPermission(
String permission) → ClaimPermission -
inherited
-
getPermissions(
) → ClaimPermissions -
inherited
-
getStringFlag(
{required String code, String? defaultValue}) → String? -
inherited
-
getToken(
{bool forceRefresh = false}) → Future< String?> -
getUser(
) → Future< UserProfile?> -
getUserDetails(
) → UserDetails? -
inherited
-
getUserOrganizations(
) → ClaimOrganizations -
inherited
-
getUserProfileV2(
) → Future< UserProfileV2?> -
isAuthenticated(
) → Future< bool> - Checks if the user is authenticated with a valid, non-expired token.
-
login(
{AuthFlowType? type, AdditionalParameters additionalParams = const AdditionalParameters()}) → Future< String?> - for web it returns null, and invokes loginRedirectUri
-
logout(
{Dio? dio, bool macosLogoutWithoutRedirection = true, Duration timeout = const Duration(seconds: 30)}) → Future< void> - Logs out the user from the Kinde session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseToken(
String? token) → Map -
inherited
-
register(
{AuthFlowType? type, AdditionalParameters additionalParams = const AdditionalParameters()}) → Future< String?> - for web it returns null, and invokes loginRedirectUri
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → KindeFlutterSDK
-
no setter
Static Methods
-
getTemporaryDirectoryPath(
) → Future< String> -
initializeSDK(
{required String authDomain, required String authClientId, required String loginRedirectUri, required String logoutRedirectUri, List< String> scopes = _defaultScopes, String? audience}) → Future<KindeFlutterSDK>