Skip to content

Commit

Permalink
Create AuthTypes.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahxdu committed Aug 1, 2023
1 parent 989725b commit a4e50c4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions frontend/src/types/AuthTypes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
export type AuthenticatedUser = {
accessToken: string;
id: string;
info: UserInfo;
} | null;

export type Contact = {
name: string;
phone: string;
email: string;
};

export type Role = "ASP" | "Donor" | "Admin";

export type UserInfo = {
email: string;
organizationAddress: string;
organizationName: string;
role: Role;
primaryContact: Contact;
onsiteContacts: Array<Contact>;
};

export type OnboardingRequest = {
id: string;
info: UserInfo;
dateSubmitted: string;
status: string;
} | null;

0 comments on commit a4e50c4

Please sign in to comment.