Skip to content

Configure NEXTAUTH_URL to point to another variable #6139

@nbouvrette

Description

@nbouvrette

Description 📓

I think it's fairly common to configure the site's origin in a variable and right now if you want to use NextAuth you need to duplicate this information in one more variable.

To avoid this maybe NextAuth could support configuring this variable to point to another one. Something like:

NEXT_PUBLIC_ORIGIN=https://mysite.com
NEXTAUTH_URL_VARIABLE_NAME=NEXT_PUBLIC_ORIGIN

How to reproduce ☕️

N/A

Contributing 🙌🏽

No, I am afraid I cannot help regarding this

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions