From c03741c3962da228b25c1292f1b0da6005678874 Mon Sep 17 00:00:00 2001 From: liuweiqing Date: Wed, 14 Feb 2024 21:37:52 +0800 Subject: [PATCH] chore: email template --- components/Settings.tsx | 1 + supabase/email template.html | 56 +++++++++++++++++++++++++++++++++ utils/supabase/serversignout.ts | 10 ------ 3 files changed, 57 insertions(+), 10 deletions(-) create mode 100644 supabase/email template.html delete mode 100644 utils/supabase/serversignout.ts diff --git a/components/Settings.tsx b/components/Settings.tsx index 99c298a..53c048d 100644 --- a/components/Settings.tsx +++ b/components/Settings.tsx @@ -39,6 +39,7 @@ const Settings = ({ lng }: { lng: string }) => { upstreamUrl: "", }, ]; + //https://freeapi.iil.im sk-GdUOBeCCCpeB16G877C8C62b849c4653A561550bEb79Fe7e //redux const dispatch = useAppDispatch(); const apiKey = useAppSelector((state) => state.auth.apiKey); diff --git a/supabase/email template.html b/supabase/email template.html new file mode 100644 index 0000000..deba0a5 --- /dev/null +++ b/supabase/email template.html @@ -0,0 +1,56 @@ + + + + + + Confirm Your Signup + + + +
+

Welcome to PaperAI!

+

+ You're almost ready to start exploring all the powerful features of + PaperAI, including AI writing, literature search, and more. +

+

+ Please click the button below to confirm your signup and activate your + account: +

+ Confirm Signup +

+ If you didn't sign up for a PaperAI account, please ignore this email. +

+
+ + diff --git a/utils/supabase/serversignout.ts b/utils/supabase/serversignout.ts deleted file mode 100644 index 6a6245f..0000000 --- a/utils/supabase/serversignout.ts +++ /dev/null @@ -1,10 +0,0 @@ -"use server"; - -import { cookies } from "next/headers"; -import { createClient } from "@/utils/supabase/server"; - -export const signOut = async () => { - const cookieStore = cookies(); - const supabase = createClient(cookieStore); - await supabase.auth.signOut(); -};