Currently, the confirm code is a field in the user this means:
Each time we generate a new code, it will replace the previous one. And we have no way to check if the code is valid. Thus causing errors in the front when trying to confirm the account with an 'old' code. The best way would be to generate a stateless token using JWT that will allow the app to check the code.
Currently, the confirm code is a field in the user this means: Each time we generate a new code, it will replace the previous one. And we have no way to check if the code is valid. Thus causing errors in the front when trying to confirm the account with an 'old' code. The best way would be to generate a stateless token using JWT that will allow the app to check the code.