Sha256: 55e7fbb174821e9ed3cc2c6916a78252ff9304bbd158b4da74455d3e0435bf1d
Contents?: true
Size: 348 Bytes
Versions: 1
Compression:
Stored size: 348 Bytes
Contents
require 'jwt_manager' require 'token_storage' class TokenDecoder attr_reader :token def initialize(token) @token = token end def decode jwt = load_jwt_from_link decrypted_jwt(jwt) end private def load_jwt_from_link TokenStorage.new.load(token) end def decrypted_jwt(jwt) JWTManager.decode(jwt) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
share-link-2.3 | lib/token_decoder.rb |