admin管理员组

文章数量:1399887

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 . 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:

Patreon({
    clientId: env.AUTH_PATREON_ID,
    clientSecret: env.AUTH_PATREON_SECRET,
    authorization: {
        params: {
            scope: 'identity identity[email] campaigns campaigns.members',
        },
    }
})

You can optionally set authorization.url, and I tried to do so using 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.

本文标签: