Hanko integration now available

Tomas OlveckyTomas OlveckyJamie BartonJamie Barton
Hanko integration now available

We're super excited to share that Grafbase nows supports Hanko with the new JWKS auth provider.

Hanko recently launched in Public Beta and is focused on providing the very best experience for the passkey era.

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

# Signed in user authentication schema @auth( providers: [{ type: jwks, jwksEndpoint: "{{ env.JWKS_ENDPOINT }}" }] rules: [{ allow: private }] ) { query: Query } # Group-based authentication schema @auth( providers: [{ type: jwks, jwksEndpoint: "{{ env.JWKS_ENDPOINT }}" }] rules: [{ allow: groups, groups: ["backend", "admin"] }] ) { query: Query } # Owner-based authentication schema @auth( providers: [{ type: jwks, jwksEndpoint: "{{ env.JWKS_ENDPOINT }}" }] rules: [{ allow: owner }] ) { query: Query }

Make sure to set JWKS_ENDPOINT in the file grafbase/.env when working locally, or inside your project dashboard.

JWKS_ENDPOINT=https://[YOUR_PROJECT_ID].hanko.io/.well-known/jwks.json

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