class StatelyDB::Common::Auth::AuthTokenProvider::Actor

def valid_access_token

Returns:
  • (Array) - The current access token and whether it is valid
def valid_access_token
  return "", false if @token_state.nil?
  return "", false if @token_state.expires_at_unix_secs < Time.now.to_i
  [@token_state.token, true]
end