When I sign in to surreal DB, the action succeeds and I receive an encrypted JWT:
{
"code": 200,
"details": "Authentication succeeded",
"token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE2NzIwMzc2MjMsIm5iZiI6MTY3MjAzNzYyMywiZXhwIjoxNjcyMTI0MDIzLCJpc3MiOiJTdXJyZWFsREIiLCJOUyI6InRlc3QiLCJEQiI6InRlc3QiLCJTQyI6InVzZXIiLCJJRCI6InVzZXI6czFiN3JzcnlxNW9jdDVmM2FrdHEifQ.BBhUechMxdL0Vt3SIOHd3vAVDgieBRXhwhMgTZLpXn50fCB-j2P7JpA8BLwY3KmA_he4A"
}
However I need to get the decrypted token in JSOn format or so to show messages on UI. Either I need to make an additional query to fetch all metadata or I was wondering if there's a way to get the JWT token de-crypted with login response in surreal DB?
If there's no way, can someone please so a curl example of fetching all the user metadata by JWT in surreal DB?