Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ declare module '@gravity-ui/nodekit' {
// TODO(DakEnviy): Change this to AppAuthHandler in the next major release
appAuthHandler?: RequestHandler;
appAuthPolicy?: `${AuthPolicy}`;
appAuthDisableRedirect?: boolean;

appBeforeAuthMiddleware?: RequestHandler[];
appAfterAuthMiddleware?: RequestHandler[];
Expand Down Expand Up @@ -92,12 +93,12 @@ declare module '@gravity-ui/nodekit' {
export enum AuthPolicy {
disabled = 'disabled',
optional = 'optional',
redirect = 'redirect',
required = 'required',
}

export interface AppRouteParams {
authPolicy?: `${AuthPolicy}`;
authDisableRedirect?: boolean;
handlerName?: string;
disableSelfStats?: boolean;
disableCsrf?: boolean;
Expand Down
Loading