Home / Companies / Hasura / Blog / Post Details
Content Deep Dive

Custom auth for Hasura with Netlify

Blog post from Hasura

Post Details
Company
Date Published
Author
Vladimir
Word Count
789
Company Posts That Month
7
Language
English
Hacker News Points
-
Post removed?
No
Summary

In this tutorial, we will create an authentication solution for Hasura using Netlify. The main difference between this and previous solutions is that Netlify Identity supports JWT but does not support custom claims, which are crucial to make Hasura work with JWT tokens. We will use a custom Auth webhook to verify the JWT token provided by Netlify Identity, extract data from it, and send this data in a format Hasura can parse and use in its permission system. The tutorial covers setting up Hasura on Heroku, creating two tables (posts and users), getting users into Hasura, creating a Netlify site, and creating signup and custom auth webhooks. It also discusses signing in with Google or other providers and provides a summary of the live coding solution for real-world problems.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.