Documentation
¶
Overview ¶
Package authsupabase is a togo plugin that adds Supabase (GoTrue) JWT auth: a /auth/me endpoint and reusable middleware that validates the bearer token.
Blank-import it to auto-register with the kernel:
import _ "github.com/togo-framework/plugin-auth-supabase"
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
Plugin implements togo.Plugin.
func (*Plugin) Middleware ¶
Middleware protects handlers: it 401s unless a valid Supabase JWT is present, and stores the claims in the request context (use Claims(ctx) to read them).
Click to show internal directories.
Click to hide internal directories.