Exception: JwtAuthenticable::Exceptions::MissingAuthScope

Inherits:
StandardError
  • Object
show all
Defined in:
lib/jwt_authenticable/exceptions.rb

Overview

Exception for missing scopes on the JWT

Instance Method Summary collapse

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

#messageObject



34
35
36
# File 'lib/jwt_authenticable/exceptions.rb', line 34

def message
  "Auth token must contain the #{@scope} scope"
end