feat: verify users email (#215)

* worked on the email verification

* worked on the email verification

* fixed the emailing issue and the supabase updating issue

* chore: add timer to resend, add supabase.server, enforce unique email

* chore: remove nodemailer logger

* remove async

* remove disposable email verification

---------

Co-authored-by: Rotimi Best <best@classroomio.com>
This commit is contained in:
Em_Dev
2024-03-22 06:30:24 +01:00
committed by GitHub
co-authored by Rotimi Best
parent 5a566cbb4f
commit bd905b580a
17 changed files with 261 additions and 38 deletions
+5 -1
View File
@@ -21,6 +21,8 @@ interface ProfileStore {
goal: string;
source: string;
telegram_chat_id: number | null;
is_email_verified: boolean;
verified_at: string;
}
export const defaultUserState: UserStore = {
@@ -41,7 +43,9 @@ export const defaultProfileState: ProfileStore = {
role: '',
goal: '',
source: '',
telegram_chat_id: null
telegram_chat_id: null,
is_email_verified: false,
verified_at: ''
};
export const user = writable<UserStore>(defaultUserState);