n1ru4l
08/23/2022, 9:53 AMset-cookie
header with curl.
These are the commands I am using:
SignUp
curl http://localhost:3567/recipe/signup \
-X POST \
-H 'rid: session' \
-H 'content-type: application/json' \
-d '{"email": "main@localhost", "password": "ilikebigturtlesandicannotlie47"}' \
-i
SignIn
curl http://localhost:3567/recipe/signin \
-X POST \
-H 'rid: session' \
-H 'content-type: application/json' \
-d '{"email": "main@localhost", "password": "ilikebigturtlesandicannotlie47"}' \
-i
Response from SignIn
HTTP/1.1 200
Content-Type: application/json;charset=UTF-8
Content-Length: 121
Date: Tue, 23 Aug 2022 09:49:01 GMT
{"status":"OK","user":{"email":"main@localhost","id":"cdb5c5ff-605f-4c11-baf8-147a839ce953","timeJoined":1661247992543}}
According to the swagger definitions (https://app.swaggerhub.com/apis/supertokens/FDI/1.14.0#/EmailPassword%20Recipe/signUp), there should be a set-cookie
header?
Am I missing something obvious here?
Also figuring out that /{apiBasePath}/
should be /recipe
took me quite a while, is this even correct?rp_st
08/23/2022, 9:54 AMrp_st
08/23/2022, 9:54 AMrp_st
08/23/2022, 9:54 AMrp_st
08/23/2022, 9:54 AMn1ru4l
08/23/2022, 9:55 AM/{apiBasePath}/
value?rp_st
08/23/2022, 9:55 AMrp_st
08/23/2022, 9:55 AMn1ru4l
08/23/2022, 9:55 AMhttp://localhost:3567/signin
yields 404 not foundrp_st
08/23/2022, 9:55 AMrp_st
08/23/2022, 9:55 AMn1ru4l
08/23/2022, 9:56 AMn1ru4l
08/23/2022, 9:56 AMrp_st
08/23/2022, 9:56 AMrp_st
08/23/2022, 9:56 AMrp_st
08/23/2022, 9:56 AMrp_st
08/23/2022, 9:56 AMn1ru4l
08/23/2022, 9:57 AM/recipe/signin
?n1ru4l
08/23/2022, 10:03 AMn1ru4l
08/23/2022, 10:03 AMrp_st
08/23/2022, 10:07 AMn1ru4l
08/23/2022, 12:12 PMsAccessToken
cookie on the incoming request sufficient for retrieving the session via ( the supertokens-node SDKs Session.getSession
) or are all the cookie values being set mandatory? (sIdRefreshToken, sFrontToken)rp_st
08/23/2022, 12:15 PMn1ru4l
08/23/2022, 12:48 PMNo SuperTokens core available to query
Does this mean the API cannot reach the supertokens backend?n1ru4l
08/23/2022, 12:49 PMn1ru4l
08/23/2022, 12:49 PMrp_st
08/23/2022, 12:50 PMn1ru4l
08/23/2022, 12:59 PMrp_st
08/23/2022, 2:05 PM