andrew byrley
04/26/2023, 7:28 AMrp
04/26/2023, 7:32 AMandrew byrley
04/26/2023, 7:36 AMoverride_thirdpartypasswordless_apis
things generally seem to be working. when i check the supertokens dashboard, I can see the new usersrp
04/26/2023, 7:43 AM/auth
means that the frontend thinks that the session doesn't exist.
This can happen if the session tokens aren't added to the frontend correctly during sign in, which usually happens if the appInfo stuff is not corectly set.
Can i see the sign in request and response headers?andrew byrley
04/26/2023, 7:49 AMPOST /auth/signinup/code HTTP/1.1
Host: api.site.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://www.site.com/
content-type: application/json
fdi-version: 1.15
rid: thirdpartypasswordless
Content-Length: 25
Origin: https://www.site.com
Connection: keep-alive
POST /auth/signinup/code/consume undefined
Host: api.site.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: https://www.site.com/
content-type: application/json
fdi-version: 1.15
rid: thirdpartypasswordless
Content-Length: 125
Origin: https://www.site.com
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-site
and firefox says there was no response data available for this requestwww.site.com
vs site.com
issue with DNS?
website_domain is https://site.com
, but DNS is set up to forward to www.site.com
https://cdn.discordapp.com/attachments/1100684697354391633/1100693760964313129/image.png▾
rp
04/26/2023, 8:06 AMandrew byrley
04/26/2023, 8:08 AMrp
04/26/2023, 8:09 AMandrew byrley
04/26/2023, 8:10 AMrp
04/26/2023, 8:10 AMandrew byrley
04/26/2023, 8:11 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100695543098916974/image.png▾
rp
04/26/2023, 8:11 AMandrew byrley
04/26/2023, 8:12 AMsite.com
followed by a 200 to www.site.com
rp
04/26/2023, 8:13 AMandrew byrley
04/26/2023, 8:16 AMGET /auth/verify?rid=thirdpartypasswordless&preAuthSessionId=ulqRUMYjXgKYutx_ssysA-ZuvNmhtY8HbFxHCg5Bdcg= HTTP/2
Host: www.site.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/112.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Cookie: sIRTFrontend=remove
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: none
Sec-Fetch-User: ?1
and response:
HTTP/2 200 OK
accept-ranges: bytes
access-control-allow-origin: *
age: 3734
cache-control: s-maxage=0
content-disposition: inline; filename="index.html"
content-type: text/html; charset=utf-8
date: Wed, 26 Apr 2023 08:09:50 GMT
etag: "a5ccb04565e5e19340b71b936d7a34e6"
server: Vercel
strict-transport-security: max-age=63072000
x-vercel-cache: HIT
x-vercel-id: fra1:fra1::b7vnx-1682496590967-706bceefd34d
content-length: 644
X-Firefox-Spdy: h2
rp
04/26/2023, 8:16 AMandrew byrley
04/26/2023, 8:23 AMmethod=POST path="/auth/signinup/code/consume" host=api.site.com
is returning a 200rp
04/26/2023, 8:23 AMandrew byrley
04/26/2023, 8:29 AMsite.com/auth/verify?...
1. the front end sees a 308 response.
2. then the frontend calls the same magic link with a www up front: www.site.com/auth/verify?...
and gets a 200 response.
3. Immediately after that, the frontend does a GET to site.com/auth/
that is initiated by main.4602XXXXXX.js, and that gets a 308 response.
4. Then the frontend does a call to www.site.com/auth/
and that gets a 304 responserp
04/26/2023, 8:30 AMwww.site.com
, but you have set it to site.com
andrew byrley
04/26/2023, 8:30 AMrp
04/26/2023, 8:31 AMandrew byrley
04/26/2023, 8:41 AMrp
04/26/2023, 8:54 AMandrew byrley
04/26/2023, 9:25 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100714213690839081/image.png▾
rp
04/26/2023, 9:25 AMandrew byrley
04/26/2023, 9:28 AM❯ npm view supertokens-auth-react version
0.31.5
❯ pip show supertokens_python
Name: supertokens-python
Version: 0.11.13
rp
04/26/2023, 9:29 AMandrew byrley
04/26/2023, 9:38 AMrp
04/26/2023, 9:39 AMandrew byrley
04/26/2023, 9:40 AMrp
04/26/2023, 9:41 AMandrew byrley
04/26/2023, 9:42 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100718443168284712/image.png▾
rp
04/26/2023, 9:42 AMandrew byrley
04/26/2023, 9:42 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100718583975252058/image.png▾
https://cdn.discordapp.com/attachments/1100684697354391633/1100718708504137788/image.png▾
rp
04/26/2023, 9:43 AMandrew byrley
04/26/2023, 9:43 AMrp
04/26/2023, 9:43 AMandrew byrley
04/26/2023, 9:44 AM❯ npm view supertokens-auth-react version
0.31.5
rp
04/26/2023, 9:45 AMnpm view supertokens-website version
?andrew byrley
04/26/2023, 9:46 AM"supertokens-auth-react": "*",
, which probably isn't idealrp
04/26/2023, 9:47 AMandrew byrley
04/26/2023, 9:47 AMrp
04/26/2023, 9:47 AMandrew byrley
04/26/2023, 9:52 AM"supertokens-auth-react": "latest"
and ran npm install
, and it gave me this:
❯ npm install
npm WARN EBADENGINE Unsupported engine {
npm WARN EBADENGINE package: 'supertokens-auth-react@0.30.2',
npm WARN EBADENGINE required: { node: '>=16.0.0', npm: '^8' },
npm WARN EBADENGINE current: { node: 'v18.16.0', npm: '9.5.1' }
npm WARN EBADENGINE }
rp
04/26/2023, 9:53 AMnpm install --force
?andrew byrley
04/26/2023, 9:55 AMrp
04/26/2023, 9:56 AMnpm i supertokens-auth-react@0.31.5
andrew byrley
04/26/2023, 9:58 AMrp
04/26/2023, 9:58 AMandrew byrley
04/26/2023, 10:02 AMrp
04/26/2023, 10:03 AMandrew byrley
04/26/2023, 10:03 AM0.31.5
and try to deploy it that wayrp
04/26/2023, 10:08 AMandrew byrley
04/26/2023, 10:09 AMrp
04/26/2023, 10:09 AM