Clerk integration now available

Clerk integration now available

We're super excited to share that the official Grafbase + Clerk integration is now live!

Grafbase users can benefit from the amazing auth experience Clerk brings, as well as Clerk users are now able to leverage a powerful serverless GraphQL backend.

This integration is made possible by configuring Clerk as your identity provider when configuring schema. Clerk has made it super easy to get started using their JWT templates.

Here's how simple it is to configure with Grafbase:

# Signed in user authentication schema @auth( providers: [{ type: oidc, issuer: "YOUR_FRONTEND_API" }] rules: [{ allow: private }] ) { query: Query } # Group-based authentication schema @auth( providers: [{ type: oidc, issuer: "YOUR_FRONTEND_API" }] rules: [{ allow: groups, groups: ["backend", "admin"] }] ) { query: Query }

Follow the Grafbase integration guide to get started. Here you will learn how to setup Clerk, JWT templates, and how to authenticate requests with a valid token.

We'd love to hear your feedback and ideas, so join us on Discord.