/plushcap/analysis/hasura/next-js-jwt-authentication-with-next-auth-and-integration-with-hasura

Next.js JWT Authentication with NextAuth and Integration with Hasura

What's this blog post about?

This tutorial guides developers on how to implement a custom JWT solution with Next.js using next-auth and integrate the same with Hasura for authenticated GraphQL API calls. It covers cloning the official example app, configuring it, deploying Hasura to get a GraphQL API, creating a table users, generating secret keys, signing in with GitHub, encoding JWTs, decoding JWTs, adding user ID to tokens, and using session information with Server Side Rendering. The tutorial also provides links to the GitHub repository and YouTube video for further reference.

Company
Hasura

Date published
Feb. 4, 2021

Author(s)
Praveen Durairaju

Word count
1233

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.