MCPcopy Index your code
hub / github.com/supabase/auth / withToken

Function withToken

internal/api/context.go:41–43  ·  view source on GitHub ↗

withToken adds the JWT token to the context.

(ctx context.Context, token *jwt.Token)

Source from the content-addressed store, hash-verified

39
40// withToken adds the JWT token to the context.
41func withToken(ctx context.Context, token *jwt.Token) context.Context {
42 return context.WithValue(ctx, tokenKey, token)
43}
44
45// getToken reads the JWT token from the context.
46func getToken(ctx context.Context) *jwt.Token {

Callers 1

parseJWTClaimsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…