Class: RailsAuthGenerator::Configuration
- Inherits:
-
Object
- Object
- RailsAuthGenerator::Configuration
- Defined in:
- lib/rails_auth_generator/configuration.rb
Instance Attribute Summary collapse
-
#access_token_expiry ⇒ Object
Returns the value of attribute access_token_expiry.
-
#enable_roles ⇒ Object
Returns the value of attribute enable_roles.
-
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
-
#refresh_token_expiry ⇒ Object
Returns the value of attribute refresh_token_expiry.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 13 |
# File 'lib/rails_auth_generator/configuration.rb', line 8 def initialize @jwt_secret = nil @access_token_expiry = 15.minutes @refresh_token_expiry = 30.days @enable_roles = false end |
Instance Attribute Details
#access_token_expiry ⇒ Object
Returns the value of attribute access_token_expiry.
3 4 5 |
# File 'lib/rails_auth_generator/configuration.rb', line 3 def access_token_expiry @access_token_expiry end |
#enable_roles ⇒ Object
Returns the value of attribute enable_roles.
3 4 5 |
# File 'lib/rails_auth_generator/configuration.rb', line 3 def enable_roles @enable_roles end |
#jwt_secret ⇒ Object
Returns the value of attribute jwt_secret.
3 4 5 |
# File 'lib/rails_auth_generator/configuration.rb', line 3 def jwt_secret @jwt_secret end |
#refresh_token_expiry ⇒ Object
Returns the value of attribute refresh_token_expiry.
3 4 5 |
# File 'lib/rails_auth_generator/configuration.rb', line 3 def refresh_token_expiry @refresh_token_expiry end |