createAuthMiddlewares
createAuthMiddlewares<
TContext,TMeta,TErrorShape,TTier>(t,options?):AuthMiddlewares<TContext,TMeta,TErrorShape,TTier>
Type Parameters
Section titled “Type Parameters”TContext
Section titled “TContext”TContext extends AuthContext<AuthUser, unknown>
TMeta extends object
TErrorShape
Section titled “TErrorShape”TErrorShape
TTier extends string = never
Parameters
Section titled “Parameters”AuthRoot<TContext, TMeta, TErrorShape>
options?
Section titled “options?”AuthMiddlewareOptions<TTier> = {}
Returns
Section titled “Returns”AuthMiddlewares<TContext, TMeta, TErrorShape, TTier>