Compare commits
No commits in common. "2f8f5d2750a8c2da369e248426e6ed7fed8f3b49" and "75837fa2f7481fd791a84686bd4de8e9a66f130e" have entirely different histories.
2f8f5d2750
...
75837fa2f7
4 changed files with 3 additions and 13 deletions
|
@ -30,8 +30,6 @@ In the `.env` file that've you copied from `.env.example, you'll need to change
|
|||
|
||||
For production use, make sure to follow all instructions needed from https://supabase.com/docs/guides/self-hosting/docker.
|
||||
|
||||
> SMTP is required for email verification, as a code is required. The end-user is not allowed to login yet until their email is verified.
|
||||
|
||||
### Allowing Account Deletion
|
||||
When an end-user wants to delete their account, they'll be directed to `/api/account/delete`. This API requires that a function already exist in your Supabase project called `delete_user()`.
|
||||
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
---
|
||||
const { Title } = Astro.props
|
||||
import { ViewTransitions } from 'astro:transitions';
|
||||
---
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=2.2" />
|
||||
<title>{Title}</title>
|
||||
</head>
|
||||
<ViewTransitions />
|
||||
</head>
|
|
@ -22,7 +22,7 @@ export const POST: APIRoute = async ({ request, redirect }) => {
|
|||
plan: "Free",
|
||||
theme: "Dark",
|
||||
color_scheme: "Green",
|
||||
beta: true,
|
||||
beta: true
|
||||
}
|
||||
},
|
||||
email,
|
||||
|
|
|
@ -10,19 +10,13 @@ let { data: subs } = await supabase
|
|||
.select("*")
|
||||
.eq('UserSubscribed', id)
|
||||
.eq('Id', CreatorId)
|
||||
|
||||
if (subs[0] === undefined) {
|
||||
var Subbed = false
|
||||
} else {
|
||||
var Subbed = true
|
||||
}
|
||||
---
|
||||
|
||||
<Base Title="Supabase Demo">
|
||||
<div style="display: flex; justify-content: space-between; align-items: center;">
|
||||
<p style="font-size: 18px; font-weight: bold;">Vsause</p>
|
||||
<div>
|
||||
{Subbed ?
|
||||
{subs[0].Subscribed ?
|
||||
<a style="font-size: 14px;" href={"/api/account/subscription/remove?=" + 'C6nSFpj9HTCZ5t-N3Rm3-HA'}>Unsubscribe</a>
|
||||
:
|
||||
<a style="font-size: 14px;" href={"/api/account/subscription/add?=" + 'C6nSFpj9HTCZ5t-N3Rm3-HA'}>Subscribe</a>
|
||||
|
|
Loading…
Reference in a new issue