Skip to content

createAuthMiddlewares

createAuthMiddlewares<TContext, TMeta, TErrorShape, TTier>(t, options?): AuthMiddlewares<TContext, TMeta, TErrorShape, TTier>

TContext extends AuthContext<AuthUser, unknown>

TMeta extends object

TErrorShape

TTier extends string = never

AuthRoot<TContext, TMeta, TErrorShape>

AuthMiddlewareOptions<TTier> = {}

AuthMiddlewares<TContext, TMeta, TErrorShape, TTier>