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 }).
Type Parameters
Section titled “Type Parameters”U extends AuthUser
A = unknown
Parameters
Section titled “Parameters”options
Section titled “options”AuthContextOptions<U, A>
Returns
Section titled “Returns”AuthContextFactory<U, A>