fix: patreon login

This commit is contained in:
TrèsAbhi committed 2024-10-12 23:17:32 -05:00
1 parent a17a8888ff
commit 9bc745bc0e
3 files changed
+38 -4

No files matched your search

@@ -62,9 +62,9 @@ function Content({ provider }: AuthorizeProps) {
case 'patreon': {
if (!searchParams.get('code')) break;
const response = await fetch(
`/api/patreon/auth/${searchParams.get('code')}`,
);
const response = await fetch('/api/patreon/auth', {
headers: { code: searchParams.get('code')! },
});
const data = (await response.json()) as PatreonAuthResponse;
mutateApp((draft) => {