You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Twitter and Facebook provider to login via https locally. And I am using local-ssl-proxy (https://github.com/cameronhunter/local-ssl-proxy) with self-signed trusted certificate to run localhost on https. The redirection works but when returning to the application the serverside getSession returns undefined.
If i switch to http getSession works fine. Any idea why this doesn't work for https?
How to reproduce
The solution has Twitter and Facebook provider configured and since this works using http the only difference is the NEXTAUTH_URL having http vs https
triageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
1 participant
Converted from issue
This discussion was converted from issue #4533 on May 11, 2022 15:34.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
System:
OS: macOS 12.2.1
CPU: (10) arm64 Apple M1 Pro
Memory: 1.95 GB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.13.2 - /usr/local/bin/node
Yarn: 1.22.17 - /usr/local/bin/yarn
npm: 8.1.2 - /usr/local/bin/npm
Browsers:
Brave Browser: 97.1.34.81
Chrome: 101.0.4951.54
Safari: 15.3
npmPackages:
next: ^12.1.0 => 12.1.0
next-auth: ^4.3.4 => 4.3.4
react: 17.0.2 => 17.0.2
Reproduction URL
not available
Describe the issue
I am using Twitter and Facebook provider to login via https locally. And I am using local-ssl-proxy (https://github.com/cameronhunter/local-ssl-proxy) with self-signed trusted certificate to run localhost on https. The redirection works but when returning to the application the serverside getSession returns undefined.
If i switch to http getSession works fine. Any idea why this doesn't work for https?
How to reproduce
The solution has Twitter and Facebook provider configured and since this works using http the only difference is the NEXTAUTH_URL having http vs https
Expected behavior
This should work for https as well.
Beta Was this translation helpful? Give feedback.
All reactions