Thynkon / MAW2.1-KeepIt-Back

MIT License
0 stars 0 forks source link

Refreshing JWT (/jwt-refresh) does not give the user up to date (email, username ...) #10

Open antbou opened 1 year ago

antbou commented 1 year ago

Order of the steps to do :

Update the user [PUT] :

Generate and get a New token : [POST]

Problem

the user object contained in the PAYLOAD access_token is not up to date

Thynkon commented 1 year ago

In fact, I was able to reproduce this issue.

This happens beceause the funcion set_jwt_token defined in /app/misc/rodauth_main.rb is not called.