Package com.pexip.sdk.api.infinity
Object TokenStore.Companion
-
- All Implemented Interfaces:
public class TokenStore.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static TokenStore.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final static TokenStorecreate(Token token)final JobrefreshTokenIn(TokenStore $self, 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. -
-
Method Detail
-
create
final static TokenStore create(Token token)
-
refreshTokenIn
final Job refreshTokenIn(TokenStore $self, 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.
-
-
-
-