DriveTokenProvider

Supplies Drive access tokens. The default, PlayServicesTokenProvider, needs no sign-in UI. Apps that already run Google Sign-In can plug their own token in here instead.

Inheritors

Functions

Link copied to clipboard
abstract suspend fun accessToken(): DriveToken
Link copied to clipboard
open suspend fun invalidate(token: String)

Called after Drive rejected token with 401; drop any cache so the next call fetches a fresh one.