dleangen
08/16/2022, 5:24 AMdleangen
08/16/2022, 5:24 AMdleangen
08/16/2022, 5:25 AMdleangen
08/16/2022, 5:31 AMrp_st
08/16/2022, 5:35 AMcreateNewSession
function should be called in an API that is called from your frontend.
So the best way to handle this would be to make firebase send a request to your frontend app (web server) with the JWT token for the user, and then your frontend queries the backend with the token.
The backend can then verify the token and call the createNewSession function.
The reason why it requires a response object is cause the function attaches the tokens as cookies.dleangen
08/16/2022, 5:42 AM