refactor: switch to HttpOnly cookie (#660)

* Switch to httpOnly cookie
* create endpoint to retrieve temporary collaboration token

* cleanups
This commit is contained in:
Philip Okugbe
2025-01-22 22:11:11 +00:00
committed by GitHub
parent f2235fd2a2
commit 990612793f
29 changed files with 240 additions and 276 deletions

View File

@ -1,6 +1,6 @@
export enum JwtType {
ACCESS = 'access',
REFRESH = 'refresh',
COLLAB = 'collab',
}
export type JwtPayload = {
sub: string;
@ -9,8 +9,8 @@ export type JwtPayload = {
type: 'access';
};
export type JwtRefreshPayload = {
export type JwtCollabPayload = {
sub: string;
workspaceId: string;
type: 'refresh';
type: 'collab';
};

View File

@ -1,4 +0,0 @@
export interface TokensDto {
accessToken: string;
refreshToken: string;
}