mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-26 15:44:37 +01:00
fix: patreon login
This commit is contained in:
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) => {
|
||||
|
||||
Reference in new issue
Block a user