InMemoryTwitchTokenStorage

class InMemoryTwitchTokenStorage(token: TwitchTokenPayload = TwitchTokenPayload.NO_TOKEN) : TwitchTokenStorage

Implementation of the TwitchTokenStorage, which stores the received token only in memory.

Constructors

Link copied to clipboard
constructor(token: TwitchTokenPayload = TwitchTokenPayload.NO_TOKEN)

Functions

Link copied to clipboard
open suspend override fun getToken(): TwitchTokenPayload
Link copied to clipboard
open suspend override fun updateToken(oldToken: TwitchTokenPayload, newToken: TwitchTokenPayload): Boolean