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'm setting up authorization using nextjs next-auth in a sveltekit app. I want my users to be able to log into their accounts using Patreon. The Patreon authorization URL is https://www.patreon.com/oauth2/authorize. This link, however, defaults to opening in the Patreon app (on mobile), if a user has the app downloaded. The app cannot handle the sign in, so it kicks you right back out to your default browser. If your default browser is not the browser you started in, the authorization fails, I imagine because your browser is missing necessary cookies or something to that effect.
You can prevent Patreon from opening the app by ending the authorization URL in #no_universal_links. My question is how to do just that.
You can optionally set authorization.url, and I tried to do so using https://www.patreon.com/oauth2/authorize#no_universal_links to no avail, perhaps because authjs adds stuff to the end of the URL but the fragment must go at the end.
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.
-
Hi all,
I'm setting up authorization using nextjs next-auth in a sveltekit app. I want my users to be able to log into their accounts using Patreon. The Patreon authorization URL is
https://www.patreon.com/oauth2/authorize
. This link, however, defaults to opening in the Patreon app (on mobile), if a user has the app downloaded. The app cannot handle the sign in, so it kicks you right back out to your default browser. If your default browser is not the browser you started in, the authorization fails, I imagine because your browser is missing necessary cookies or something to that effect.You can prevent Patreon from opening the app by ending the authorization URL in
#no_universal_links
. My question is how to do just that.Right now, my provider is set up as follows:
You can optionally set authorization.url, and I tried to do so using
https://www.patreon.com/oauth2/authorize#no_universal_links
to no avail, perhaps because authjs adds stuff to the end of the URL but the fragment must go at the end.Any help would be greatly appreciated! Thank you.
Beta Was this translation helpful? Give feedback.
All reactions