Added new metadata parameter for signup

This commit is contained in:
Daniel Hougaard
2024-08-23 02:25:15 +04:00
parent 59b16f647e
commit 121b642d50
4 changed files with 69 additions and 8 deletions
@@ -49,3 +49,14 @@ export type TIssueAuthTokenDTO = {
ip: string;
userAgent: string;
};
export enum TokenMetadataType {
InviteToProjects = "projects-invite"
}
// TODO: Split the payloads into separate types for better type inference (not needed until we add more types of metadata)
export type TTokenMetadata = {
type: TokenMetadataType.InviteToProjects;
projectIds: string[];
userId: string;
};