PlayServicesTokenProvider

class PlayServicesTokenProvider(context: ERROR CLASS: Symbol not found for Context) : DriveTokenProvider(source)

Silent token source for the Drive app-data scope through Play Services' AuthorizationClient. After the user grants once (see DriveConsent), authorize returns a cached one-hour access token with no UI; before that it reports DriveToken.NeedsConsent. No account identity is read or stored.

Constructors

Link copied to clipboard
constructor(context: ERROR CLASS: Symbol not found for Context)

Functions

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

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