Module: SolidusJwt::Decodeable
- Included in:
- SolidusJwt
- Defined in:
- lib/solidus_jwt/concerns/decodeable.rb
Instance Method Summary collapse
-
#decode(token) ⇒ Array<Hash>
Decode a token generated by SolidusJwt.
Instance Method Details
#decode(token) ⇒ Array<Hash>
Decode a token generated by SolidusJwt
16 17 18 19 |
# File 'lib/solidus_jwt/concerns/decodeable.rb', line 16 def decode(token) JWT.decode(token, SolidusJwt::Config.jwt_secret, true, algorithm: SolidusJwt::Config.jwt_algorithm) end |