class Arkaan::OAuth::AccessToken

An access token is the value assigned to the application to access the data the user is allowed to access. @author Vincent Courtois <courtois.vincent@outlook.com>

Public Instance Methods

expired?() click to toggle source

Checks if the current date is inferior to the creation date + expiration period @return [Boolean] TRUE if the token is expired, FALSE otherwise.

# File lib/arkaan/oauth/access_token.rb, line 29
def expired?
  created_at.to_time.to_i + expiration < Time.now.to_i
end