Class: Drillbit::Tokens::JsonWebTokens::PasswordReset

Inherits:
Drillbit::Tokens::JsonWebToken show all
Defined in:
lib/drillbit/tokens/json_web_tokens/password_reset.rb

Constant Summary

Constants inherited from Drillbit::Tokens::JsonWebToken

Drillbit::Tokens::JsonWebToken::TRANSFORMATION_EXCEPTIONS

Instance Attribute Summary

Attributes inherited from Drillbit::Tokens::JsonWebToken

#data, #headers, #private_key

Class Method Summary collapse

Methods inherited from Drillbit::Tokens::JsonWebToken

#audience, #blank?, build_from_request, #empty?, #expiration, from_jwe, from_jws, #id, #initialize, #issued_at, #issuer, #not_before, #owner_id, #present?, #roles, #subject, #subject_id, #to_h, #to_jwe, #to_jwe_s, #to_jws, #to_jws_s, #to_jwt, #to_jwt_s, #valid?

Constructor Details

This class inherits a constructor from Drillbit::Tokens::JsonWebToken

Class Method Details

.build(expiration: Time.now.utc.to_i + (30 * 60), roles: ['password_reset'], **attrs) ⇒ Object



9
10
11
12
13
14
# File 'lib/drillbit/tokens/json_web_tokens/password_reset.rb', line 9

def self.build(expiration: Time.now.utc.to_i + (30 * 60),
               roles: ['password_reset'],
               **attrs)

  super(expiration: expiration, roles: roles, **attrs)
end