class OAuth2::AccessToken

def expired?

Returns:
  • (Boolean) - true if the token is expired, false otherwise
def expired?
  expires? && (expires_at <= Time.now.to_i)
end