Skip to content

Instantly share code, notes, and snippets.

@matija
Last active November 5, 2018 09:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matija/662bc6b89f2a4f2be5e0ea2924171828 to your computer and use it in GitHub Desktop.
Save matija/662bc6b89f2a4f2be5e0ea2924171828 to your computer and use it in GitHub Desktop.
def self.decode(token)
 payload = JWT.decode token, self.hmac_secret, true, { :algorithm => 'HS256' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment