I am using Actions to try and send a username and password within a cookie or maybe a token, I don’t know which best.
The idea is I have a backend api that required a username and a password then it returns a bearer token to use it to fetch data.
I was thinking about using Post Logic action to send username and password in a token, then access them in Next js.
Is is possible? if so how?
Hi @rezgui.aziz
Welcome back to the Auth0 Community!
First of all, I wouldn’t recommend sending any form of sensitive data in a token or a cookie. Can you share more details about the use case you want to implement?
Thanks
Dawid
Step 1 : A user register then logs in with Auth0
Step 2: A bearer token needs to be generated from a backend api, it takes a username and a password ( saved on a seperate db).
Step 3 : I want to save the Bearer & Use it in a secure way.
Problem : I was hoping , using actions , I could fetch the username & password from db, send it to the user.
I am using next js, so If handling this would be more suited for a server side API let me know.
The issue I see that once the password is set on our site it’s can’t be decoded into it’s plain form. Also there’s no option for you to fetch hash or plain password from the Auth0 databases.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.