feat: patreon plug

This commit is contained in:
TrèsAbhi committed 2024-06-15 13:16:12 -05:00
1 parent 0a0376312b
commit 14e45d97d2
11 files changed
+126 -61

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
export function patreonLoginUrl() {
const params = new URLSearchParams({
response_type: 'code',
client_id: process.env.NEXT_PUBLIC_PATREON_CLIENT_ID as string,
redirect_uri: process.env.NEXT_PUBLIC_PATREON_REDIRECT_URI as string,
scope: 'identity',
});
return `https://www.patreon.com/oauth2/authorize?${params}`;
}