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}) → Future< void> -
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(
) → Future< String?> -
getUser(
) → Future< UserProfile?> -
getUserDetails(
) → UserDetails? -
inherited
-
getUserOrganizations(
) → ClaimOrganizations -
inherited
-
getUserProfileV2(
) → Future< UserProfileV2?> -
isAuthenticated(
) → Future< bool> - Returns whether the user is currently authenticated.
-
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> -
for web it invokes logoutRedirectUri
timeout
- for non web logout -
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>