refactor: apply review suggestions

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
Camila Belo
2024-04-03 13:03:53 +02:00
committed by Patrik Oldsberg
parent c884b9a478
commit ffd71105a6
43 changed files with 351 additions and 369 deletions
+1 -3
View File
@@ -325,13 +325,11 @@ export interface HttpAuthService {
issueUserCookie(
res: Response_2,
options?: {
credentials?: BackstageCredentials<BackstageUserPrincipal>;
credentials?: BackstageCredentials;
},
): Promise<{
expiresAt: Date;
}>;
// (undocumented)
removeUserCookie(res: Response_2): void;
}
// @public (undocumented)
@@ -15,11 +15,7 @@
*/
import { Request, Response } from 'express';
import {
BackstageCredentials,
BackstagePrincipalTypes,
BackstageUserPrincipal,
} from './AuthService';
import { BackstageCredentials, BackstagePrincipalTypes } from './AuthService';
/** @public */
export interface HttpAuthService {
@@ -34,9 +30,7 @@ export interface HttpAuthService {
issueUserCookie(
res: Response,
options?: {
credentials?: BackstageCredentials<BackstageUserPrincipal>;
credentials?: BackstageCredentials;
},
): Promise<{ expiresAt: Date }>;
removeUserCookie(res: Response): void;
}