getValidAccessToken

suspend fun getValidAccessToken(forceRefresh: Boolean = false): String?

Returns a currently valid access token.

When forceRefresh is false, this returns the in-memory access token if it is present and not expired. Otherwise it attempts a refresh and returns the refreshed token on success, or null if refresh fails.