I want to extract user info like User ID and User Name using JWT token. I was able to do it in django like this-
valid_data = TokenBackend(algorithm='HS256').decode(token, verify=False)
user_id = valid_data['user_id']
return user_id
but how do I do it using ruby. Thanks :)
Aucun commentaire:
Enregistrer un commentaire