workos / authkit-nextjs

The WorkOS library for Next.js provides convenient helpers for authentication and session management using WorkOS & AuthKit with Next.js.
MIT License
67 stars 18 forks source link

Adds configurable baseURL in the auth redirect route #130

Closed PaulAsjes closed 1 week ago

PaulAsjes commented 2 weeks ago

Fixes https://github.com/workos/authkit-nextjs/issues/37

Adds a new baseURL configuration option to handleAuth. This is to circumvent scenarios where request.nextUrl points to an internal URL rather than the intended one.