AuthManager class abstract

An abstraction for providing authentication to the SDK.

Implementers

Constructors

AuthManager()
Creates a AuthManager instance.
const

Properties

authData AuthData?
Returns the auth data used to authenticate the token if it exists.
no setter
authStream Stream<AuthData?>
Returns the stream of the auth data. Any changes to it will be broadcast to the stream.
no 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

authenticate() Future<void>
Performs a handshake with the server to authenticate the token.
dispose() → void
Disposes this instance of the AuthManager.
getBestPublishSource(CodelesslyConfig config) PublishSource
Returns the PublishSource to be used for fetching the published model. If the AuthData reveals that the project is a template, then the PublishSource.template is returned, otherwise the PublishSource configured in the CodelesslyConfig is returned.
hasCloudStorageAccess(String projectId) bool
Returns true if the user has access to cloud storage.
init() Future<void>
Initializes the AuthManager.
isAuthenticated() bool
Returns true if a handshake was done successfully.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reset() → void
Sets the AuthData to null and emits a null value to the stream.
toString() String
A string representation of this object.
inherited

Operators

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