taijuten
07/25/2021, 8:56 PMtaijuten
07/25/2021, 8:57 PMrp
07/25/2021, 8:57 PMtaijuten
07/25/2021, 8:58 PMrp
07/25/2021, 9:00 PMrp
07/26/2021, 5:22 AMinit
function just once per lambda function load (which will solve the cold start problem for 15 mins since the lambda function would be alive for 15 mins).
You would instead have to provide some callbacks in the init function which determine the tenant's website domain (for email verification + password reset links). Like here: https://github.com/supertokens/supertokens-auth-react/blob/master/examples/with-one-login-per-subdomain/api-server.jsKillian
08/04/2021, 5:26 AMKillian
08/04/2021, 6:00 AMrp
08/04/2021, 6:24 AMrp
08/04/2021, 6:25 AMKillian
08/04/2021, 5:03 PMjavascript
app.post("/users/signup", async (req,res) => {
"Create a user (Contains Email, Password(Hashed) and Birthday), and add it to the database"
})
app.post("/users/login", async (req,res) => {
"Sign the user in, and return a JWT/SuperTokens Alternative, so it can interact with the rest of the API which require you to be logged in"
})
Would this be possible with Supertokens, and is there any tuts or part of them recipies?rp
08/04/2021, 5:04 PMrp
08/04/2021, 5:05 PMrp
08/04/2021, 5:05 PMKillian
08/04/2021, 5:06 PMrp
08/04/2021, 5:06 PMKillian
08/04/2021, 5:06 PMKillian
08/04/2021, 5:10 PMrp
08/04/2021, 5:10 PMKillian
08/04/2021, 5:11 PMKillian
08/04/2021, 5:12 PMrp
08/04/2021, 5:13 PMrp
08/04/2021, 5:13 PMrp
08/04/2021, 5:13 PMKillian
08/04/2021, 5:14 PMKillian
08/04/2021, 5:14 PMrp
08/04/2021, 5:14 PMrp
08/04/2021, 5:15 PMKillian
08/04/2021, 5:15 PMKillian
08/04/2021, 5:16 PM