clerk / javascript

Official Javascript repository for Clerk authentication
https://clerk.com
MIT License
958 stars 212 forks source link

fix(nextjs): Make exported server action async #3593

Closed BRKalow closed 3 weeks ago

BRKalow commented 3 weeks ago

Description

Fixes a reported issue where the following error was reported: https://nextjs.org/docs/messages/invalid-use-server-value

I'm not able to reproduce myself across a number of versions, but based on the documentation above, this function must be async, so I'm updating it.

Checklist

Type of change

changeset-bot[bot] commented 3 weeks ago

🦋 Changeset detected

Latest commit: 93ec0589b622f28b32319a6dacd85e0f6e25c86f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------------- | ----- | | @clerk/nextjs | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR