Module: JWTPayload
- Defined in:
- app/controllers/concerns/jwt_payload.rb
Instance Method Summary collapse
Instance Method Details
#email ⇒ Object
12 13 14 |
# File 'app/controllers/concerns/jwt_payload.rb', line 12 def email jwt_payload[:email] end |
#jwt_payload ⇒ Object
4 5 6 |
# File 'app/controllers/concerns/jwt_payload.rb', line 4 def jwt_payload @jwt_payload ||= request.env.fetch("jwt.payload", {}).symbolize_keys end |
#role ⇒ Object
16 17 18 |
# File 'app/controllers/concerns/jwt_payload.rb', line 16 def role jwt_payload[:role] end |
#uid ⇒ Object
8 9 10 |
# File 'app/controllers/concerns/jwt_payload.rb', line 8 def uid jwt_payload[:uid] end |