andrewbyrley
04/26/2023, 7:28 AMrp_st
04/26/2023, 7:32 AMandrewbyrley
04/26/2023, 7:36 AMandrewbyrley
04/26/2023, 7:36 AMandrewbyrley
04/26/2023, 7:37 AMoverride_thirdpartypasswordless_apis
things generally seem to be working. when i check the supertokens dashboard, I can see the new usersandrewbyrley
04/26/2023, 7:38 AMrp_st
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?andrewbyrley
04/26/2023, 7:49 AMandrewbyrley
04/26/2023, 7:49 AMandrewbyrley
04/26/2023, 7:58 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
andrewbyrley
04/26/2023, 8:00 AMPOST /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 requestandrewbyrley
04/26/2023, 8:00 AMandrewbyrley
04/26/2023, 8:02 AMwww.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
andrewbyrley
04/26/2023, 8:04 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100693760964313129/image.png▾
rp_st
04/26/2023, 8:06 AMandrewbyrley
04/26/2023, 8:08 AMrp_st
04/26/2023, 8:09 AMandrewbyrley
04/26/2023, 8:10 AMrp_st
04/26/2023, 8:10 AMandrewbyrley
04/26/2023, 8:11 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100695543098916974/image.png▾
rp_st
04/26/2023, 8:11 AMandrewbyrley
04/26/2023, 8:12 AMsite.com
followed by a 200 to www.site.com
rp_st
04/26/2023, 8:13 AMrp_st
04/26/2023, 8:13 AMandrewbyrley
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_st
04/26/2023, 8:16 AMandrewbyrley
04/26/2023, 8:23 AMmethod=POST path="/auth/signinup/code/consume" host=api.site.com
is returning a 200rp_st
04/26/2023, 8:23 AMandrewbyrley
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_st
04/26/2023, 8:30 AMwww.site.com
, but you have set it to site.com
andrewbyrley
04/26/2023, 8:30 AMrp_st
04/26/2023, 8:31 AMandrewbyrley
04/26/2023, 8:41 AMandrewbyrley
04/26/2023, 8:41 AMrp_st
04/26/2023, 8:54 AMandrewbyrley
04/26/2023, 9:25 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100714213690839081/image.png▾
rp_st
04/26/2023, 9:25 AMrp_st
04/26/2023, 9:27 AMandrewbyrley
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_st
04/26/2023, 9:29 AMrp_st
04/26/2023, 9:29 AMrp_st
04/26/2023, 9:29 AMandrewbyrley
04/26/2023, 9:38 AMandrewbyrley
04/26/2023, 9:38 AMandrewbyrley
04/26/2023, 9:39 AMrp_st
04/26/2023, 9:39 AMrp_st
04/26/2023, 9:39 AMandrewbyrley
04/26/2023, 9:40 AMandrewbyrley
04/26/2023, 9:41 AMrp_st
04/26/2023, 9:41 AMandrewbyrley
04/26/2023, 9:42 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100718443168284712/image.png▾
rp_st
04/26/2023, 9:42 AMandrewbyrley
04/26/2023, 9:42 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100718583975252058/image.png▾
andrewbyrley
04/26/2023, 9:43 AMhttps://cdn.discordapp.com/attachments/1100684697354391633/1100718708504137788/image.png▾
rp_st
04/26/2023, 9:43 AMrp_st
04/26/2023, 9:43 AMandrewbyrley
04/26/2023, 9:43 AMrp_st
04/26/2023, 9:43 AMrp_st
04/26/2023, 9:44 AMandrewbyrley
04/26/2023, 9:44 AM❯ npm view supertokens-auth-react version
0.31.5
rp_st
04/26/2023, 9:45 AMnpm view supertokens-website version
?rp_st
04/26/2023, 9:45 AMandrewbyrley
04/26/2023, 9:46 AM"supertokens-auth-react": "*",
, which probably isn't idealandrewbyrley
04/26/2023, 9:46 AMrp_st
04/26/2023, 9:47 AMandrewbyrley
04/26/2023, 9:47 AMrp_st
04/26/2023, 9:47 AMrp_st
04/26/2023, 9:47 AMrp_st
04/26/2023, 9:48 AMandrewbyrley
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_st
04/26/2023, 9:53 AMnpm install --force
?andrewbyrley
04/26/2023, 9:55 AMrp_st
04/26/2023, 9:56 AMnpm i supertokens-auth-react@0.31.5
andrewbyrley
04/26/2023, 9:58 AMrp_st
04/26/2023, 9:58 AMandrewbyrley
04/26/2023, 10:02 AMrp_st
04/26/2023, 10:03 AMandrewbyrley
04/26/2023, 10:03 AM0.31.5
and try to deploy it that wayandrewbyrley
04/26/2023, 10:03 AMandrewbyrley
04/26/2023, 10:08 AMandrewbyrley
04/26/2023, 10:08 AMandrewbyrley
04/26/2023, 10:08 AMrp_st
04/26/2023, 10:08 AMandrewbyrley
04/26/2023, 10:09 AMrp_st
04/26/2023, 10:09 AM