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
Have an optional url key in the NextAuthConfig interface.
The url key will act the same as the AUTH_URL environment variable.
Behave in a similar way as the secret option whereby it acts as though the AUTH_SECRET environment variable was set.
Non-Goals
No response
Background
I'm using 5.0.0-beta.9
I am using SST to deploy my stack and their recommended method of transferring environment variables is using their built-in Config object which is only available after the stack has been deployed and bound. I can pass in environment variables but it means I am going against their patterns. It would be useful if I could pass in the AUTH_URL variable as a config option in NextAuthConfig.
Proposal
Add a url option to NextAuthConfig as another method of defining AUTH_URL. Similar to how the secret option is another way to define AUTH_SECRET.
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.
-
Goals
url
key in theNextAuthConfig
interface.url
key will act the same as theAUTH_URL
environment variable.secret
option whereby it acts as though theAUTH_SECRET
environment variable was set.Non-Goals
No response
Background
I'm using 5.0.0-beta.9
I am using SST to deploy my stack and their recommended method of transferring environment variables is using their built-in
Config
object which is only available after the stack has been deployed and bound. I can pass in environment variables but it means I am going against their patterns. It would be useful if I could pass in theAUTH_URL
variable as a config option inNextAuthConfig
.Proposal
Add a
url
option toNextAuthConfig
as another method of definingAUTH_URL
. Similar to how thesecret
option is another way to defineAUTH_SECRET
.Beta Was this translation helpful? Give feedback.
All reactions