lib/devise/oauth2_providable/expirable_token.rb in anjlab-devise-oauth2-providable-1.1.1 vs lib/devise/oauth2_providable/expirable_token.rb in anjlab-devise-oauth2-providable-1.1.2
- old
+ new
@@ -29,10 +29,10 @@
end
module LocalInstanceMethods
# number of seconds until the token expires
def expires_in
- (expires_at - Time.now.utc).to_i
+ (expires_at.utc - Time.now.utc).to_i
end
# forcefully expire the token
def expired!
self.expires_at = Time.now.utc