Exception: JwtAuthenticable::Exceptions::MissingAuthScope
- Inherits:
-
StandardError
- Object
- StandardError
- JwtAuthenticable::Exceptions::MissingAuthScope
- Defined in:
- lib/jwt_authenticable/exceptions.rb
Overview
Exception for missing scopes on the JWT
Instance Method Summary collapse
-
#initialize(scope) ⇒ MissingAuthScope
constructor
A new instance of MissingAuthScope.
- #message ⇒ Object
Constructor Details
#initialize(scope) ⇒ MissingAuthScope
Returns a new instance of MissingAuthScope.
29 30 31 32 |
# File 'lib/jwt_authenticable/exceptions.rb', line 29 def initialize(scope) @scope = scope super(scope) end |
Instance Method Details
#message ⇒ Object
34 35 36 |
# File 'lib/jwt_authenticable/exceptions.rb', line 34 def "Auth token must contain the #{@scope} scope" end |