Strapi JWT Authentication in Next.js

This article is a guest post by Osmar Pérez. He wrote this blog post through the Write for the Community program. If you are passionate about everything Jamstack, open-source, or javascript and want to share, join the writer's guild!


This is a companion discussion topic for the original entry at https://strapi.io/blog/Strapi-JWT-Authentication-Next.js

Hey @Osmar_Perez
Thanks for this, I’ve used bits of this to finish my auth setup - awesome!
Any chance you could update the doc with how you’d handle signing up a new user via the api?
I’m stuck on how to merge the strapi jwt into the nextauth token.

Thank you for this great tutorial!
And yes, as @gorlaz said, I’ll be really thankful if you explain how users can sign up for a new account without directly accessing strapi dashboard.