public interface AuthTokenManager
Modifier and Type | Method and Description |
---|---|
void |
clearToken()
Clears the local access token and refresh token, if they exist.
|
java.lang.String |
getAccessToken()
Synchronously returns existing valid access token.
|
boolean |
hasAccessToScope(java.lang.String scope)
Determines whether the user has authorized the current session to have access to resources
with the requested scope.
|
boolean |
isUserLoggedIn() |
void |
refreshAccessToken(com.snapchat.kit.sdk.core.networking.RefreshAccessTokenResult callback)
Asynchronously attempts to obtain an access token for the current user.
|
void |
startTokenGrant()
The first step of the OAuth Flow.
|
void |
startTokenGrantWithOptions(com.snapchat.kit.sdk.core.models.SnapKitFeatureOptions snapKitFeatureOptions)
The first step of the OAuthFlow.
|
boolean isUserLoggedIn()
void refreshAccessToken(com.snapchat.kit.sdk.core.networking.RefreshAccessTokenResult callback)
callback
- is used to return the resulting access token or error message.@Nullable java.lang.String getAccessToken()
void startTokenGrant()
void startTokenGrantWithOptions(@NonNull com.snapchat.kit.sdk.core.models.SnapKitFeatureOptions snapKitFeatureOptions)
snapKitFeatureOptions
- The options to be included in the Snapchat login request.boolean hasAccessToScope(@NonNull java.lang.String scope)
scope
- The scopevoid clearToken()