Package com.pexip.sdk.api.infinity
Class TokenStore
-
- All Implemented Interfaces:
@InternalSdkApi() public final class TokenStoreA token store.
-
-
Constructor Summary
Constructors Constructor Description TokenStore(Token token)
-
Method Summary
Modifier and Type Method Description final StateFlow<Token>getToken()The store token. final JobrefreshTokenIn(CoroutineScope scope, SuspendFunction1<Token, Token> refreshToken, SuspendFunction1<Token, Unit> releaseToken, SuspendFunction1<Throwable, Unit> onFailure)A helper function to refresh and release the Token found in TokenStore. -
-
Constructor Detail
-
TokenStore
TokenStore(Token token)
-
-
Method Detail
-
refreshTokenIn
final Job refreshTokenIn(CoroutineScope scope, SuspendFunction1<Token, Token> refreshToken, SuspendFunction1<Token, Unit> releaseToken, SuspendFunction1<Throwable, Unit> onFailure)
A helper function to refresh and release the Token found in TokenStore.
Note that this function is not intended for consumers to use directly.
-
-
-
-