FTAuthInterface class abstract

Implemented types
Implementers

Constructors

FTAuthInterface()

Properties

authStates Stream<AuthState>
Returns the stream of authorization states.
no setterinherited
currentState AuthState
The current authorization state.
no setterinherited
currentUser User?
Retrieves the currently logged in user.
no setter
hashCode int
The hash code for this object.
no setterinherited
isLoggedIn bool
Whether or not a user is currently logged in.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

authorize({String? language, String? countryCode}) Future<String>
Initiates the authorization code flow.
inherited
exchange(Map<String, String> parameters) Future<Client>
Performs the second part of the authorization code flow, exhanging the parameters retrieved via the WebView with the OAuth server for an access and refresh token.
inherited
init() Future<void>
Initializes the SDK. Must be called before performing any activities.
inherited
isPinning(String host) bool
Returns true if the repository is currently pinning for host.
inherited
launchUrl(String url) Future<void>
Launches the given URL.
inherited
login({String? language, String? countryCode}) Future<void>
Performs the full two-step OAuth process.
inherited
logout({bool deinit = false}) Future<void>
Logs out the current user.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pinCert(Certificate certificate) → void
Creates a strict pinning to the given certificate for a particular host.
inherited
refreshAuthState() Future<void>
Pull the latest auth state from the keychain. If, for example, an app extension or another window changed it, we may not have the latest.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited