Sha256: a4a296fb0091dc35f0aa725bbb902c43d961f9e4313576d56efa1e0ff7450a13
Contents?: true
Size: 375 Bytes
Versions: 3
Compression:
Stored size: 375 Bytes
Contents
module SolidusJwt module Decodeable ## # Decode a token generated by SolidusJwt # @see https://github.com/jwt/ruby-jwt # # @param token [String] The token to decode # @return [Array<Hash>] # def decode(token) JWT.decode(token, SolidusJwt::Config.jwt_secret, true, algorithm: SolidusJwt::Config.jwt_algorithm) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
solidus_jwt-0.0.2 | lib/solidus_jwt/concerns/decodeable.rb |
solidus_jwt-0.0.1 | lib/solidus_jwt/concerns/decodeable.rb |
solidus_jwt-0.0.1.pre | lib/solidus_jwt/concerns/decodeable.rb |