Hello I need some insight here, maybe I'm missing something..
I was asked to create a register form in this format:
User complete a simple register form: Email and Password to api/login/register1
That stores something like:
mail : "micuenta12345678911@gmail.com",
password: "$argon2id$v=19$m=65536,t=3,p=4$WpPni4oqpwubEpeBNBboyQ$G1oRvRyet6VpBkBDrolKHCqu8YFbQk+hHq4D5qxiKBo"
token1: "fab35721-0eaa-44da-9520-5694972bfd84"
token2: "awNc43Zmpk"
Now a second register page is opened with /finish_register/:token1/:token2
Then the user completes all the extra-info and it sends to: /api/login/register2
Let's say: birthday-date, username, token1, token2
After all is sent: with :token1 and :token2 I'm trying to make a query to auto-login the user but that won't work because it double hash it.
This register format is needed because the user must send some data that is not including with providers like google and facebook.
So, it's there a way to auto-login using this system?