class Warden::JWTAuth::Interfaces::User
An user
Public Instance Methods
jwt_payload()
click to toggle source
Allows adding extra claims to be encoded within the payload
@return [Hash] claims to be merged with defaults
# File lib/warden/jwt_auth/interfaces.rb, line 31 def jwt_payload {} end
jwt_subject()
click to toggle source
What will be encoded as `sub` claim. It must respond to `#to_s`.
@return [#to_s] `sub` claim
# File lib/warden/jwt_auth/interfaces.rb, line 24 def jwt_subject raise NotImplementedError end
on_jwt_dispatch(_token, _payload)
click to toggle source
Does something just after a JWT for the user has been dispatched.
@param _token [String] @param _payload [Hash]
# File lib/warden/jwt_auth/interfaces.rb, line 39 def on_jwt_dispatch(_token, _payload) raise NotImplementedError end