Skip to content

createAuthContext

createAuthContext<U, A>(options): AuthContextFactory<U, A>

Checks the options once and returns the context creators. Spread the result into your own context: async (opts) => ({ ...(await authContext.node(opts)), db }).

U extends AuthUser

A = unknown

AuthContextOptions<U, A>

AuthContextFactory<U, A>