Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow getToken in Server Components #5754

Closed
scastiel opened this issue Nov 7, 2022 · 0 comments · Fixed by #5792
Closed

Allow getToken in Server Components #5754

scastiel opened this issue Nov 7, 2022 · 0 comments · Fixed by #5792
Labels
enhancement New feature or request triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

Comments

@scastiel
Copy link

scastiel commented Nov 7, 2022

Description 📓

It is now possible to use unstable_getServerSession from a server component (in Next.js 13) thanks to #5741.

It should be possible to use the same trick to allow using getToken as well I guess?

I’m available to draft a PR with a POC in the next couple of days.

How to reproduce ☕️

N/A

Contributing 🙌🏽

Yes, I am willing to help implement this feature in a PR

@scastiel scastiel added enhancement New feature or request triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime. labels Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Unseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.
Projects
None yet
1 participant