require 'jwt' module Auth0 module Mixins # Working with JWT # # https://auth0.com/docs/jwt module JwtOperations # https://auth0.com/docs/server-apis/ruby def decode_jwt(token, client_secret=@client_secret) JWT.decode(token,Base64.decode64(client_secret.tr("-_","+/"))) end end end end