Class: AuthRails::Configuration::Jwt
- Inherits:
-
Object
- Object
- AuthRails::Configuration::Jwt
- Defined in:
- lib/auth_rails/configuration/jwt.rb
Defined Under Namespace
Classes: AccessToken, RefreshToken
Class Attribute Summary collapse
-
.strategy ⇒ Object
Returns the value of attribute strategy.
Class Method Summary collapse
Class Attribute Details
.strategy ⇒ Object
Returns the value of attribute strategy.
7 8 9 |
# File 'lib/auth_rails/configuration/jwt.rb', line 7 def strategy @strategy end |
Class Method Details
.access_token {|AccessToken| ... } ⇒ Object
9 10 11 12 13 |
# File 'lib/auth_rails/configuration/jwt.rb', line 9 def access_token yield AccessToken AccessToken.algorithm ||= 'HS256' end |
.refresh_token {|RefreshToken| ... } ⇒ Object
15 16 17 18 19 |
# File 'lib/auth_rails/configuration/jwt.rb', line 15 def refresh_token yield RefreshToken RefreshToken. ||= :ref_tok end |