Class: Morpho::JWT::AuthenticationToken
- Inherits:
-
Object
- Object
- Morpho::JWT::AuthenticationToken
- Defined in:
- app/services/morpho/jwt/authentication_token.rb
Class Method Summary collapse
Class Method Details
.new(request) ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/services/morpho/jwt/authentication_token.rb', line 4 def self.new(request) if request.headers[Morpho.config.jwt.header].present? request.headers[Morpho.config.jwt.header].split(' ').last else nil end end |