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
The modified properties should be deep merged into the defaults.
In reality, when doing this, i get an exception like this at login time:
[auth][error] TypeError: Invalid URL
at new URL (node:internal/url:818:25)
at getAuthorizationUrl (/Users/rhufsky/Documents/Development/HTL-IT/Experimental-Applications/authdemo/.next/server/chunks/ssr/node_modules_c31d8c._.js:11189:24)
Adding the original AUTH_URL to the config solves the problem, so no deep merging, at least in the Gitlab Provider.
In the sample, comment out url: GITLAB_AUTH_URL, and try top log in.
Expected behavior
In should not be neccesary to add url: GITLAB_AUTH_URL, when I want to configure scopes.
The text was updated successfully, but these errors were encountered:
rhufsky
added
bug
Something isn't working
triage
Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
labels
Jan 1, 2025
Environment
Reproduction URL
https://github.com/rhufsky/authdemo
Describe the issue
The document https://authjs.dev/guides/configuring-oauth-providers states that requesting additional scopes can be implemented by just adding a property to the provider like so:
The modified properties should be deep merged into the defaults.
In reality, when doing this, i get an exception like this at login time:
Adding the original
AUTH_URL
to the config solves the problem, so no deep merging, at least in the Gitlab Provider.How to reproduce
In the sample, comment out
url: GITLAB_AUTH_URL,
and try top log in.Expected behavior
In should not be neccesary to add
url: GITLAB_AUTH_URL,
when I want to configure scopes.The text was updated successfully, but these errors were encountered: