module Devise::Models::JwtAuthenticatable
Model that will be authenticatable with the JWT
strategy
@see [Warden::JWTAuth::Interfaces::UserRepository] @see [Warden::JWTAuth::Interfaces::User]
Public Class Methods
find_for_jwt_authentication(sub)
click to toggle source
# File lib/devise/jwt/models/jwt_authenticatable.rb, line 19 def self.find_for_jwt_authentication(sub) find_by(primary_key => sub) end
Public Instance Methods
jwt_subject()
click to toggle source
# File lib/devise/jwt/models/jwt_authenticatable.rb, line 24 def jwt_subject id end