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
43 stars 9 forks source link

No `getSignUpUrl` import? #31

Closed ChristoRibeiro closed 2 months ago

ChristoRibeiro commented 2 months ago

Hi,

The doc mentions getSignInUrl and getSignUpUrl, but it seems that getSignUpUrl is not available to import.

Is it normal?

PaulAsjes commented 2 months ago

This has just been released, install version v.0.5.0 and you should see getSignUpUrl.

ChristoRibeiro commented 2 months ago

I got the v0.5.0 and it seems the module is broken:

Cannot find module '@workos-inc/authkit-nextjs' or its corresponding type declarations.

PaulAsjes commented 2 months ago

Sorry about that, our new github action was missing a step. Version v0.5.1 should work correctly.

ChristoRibeiro commented 2 months ago

@PaulAsjes I have changed nothing and now I get the error "Invalid URL".

CleanShot 2024-04-29 at 15 38 56@2x

An idea of why?

PaulAsjes commented 2 months ago

You most likely don't have WORKOS_REDIRECT_URI set in your environment variables. See the readme for further instructions.