mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-20 04:14:12 +01:00
13 lines
403 B
TypeScript
13 lines
403 B
TypeScript
import { assertSecret } from '../blitzkit/assertSecret';
|
|
|
|
export function patreonLoginUrl() {
|
|
const params = new URLSearchParams({
|
|
response_type: 'code',
|
|
client_id: assertSecret(import.meta.env.PUBLIC_PATREON_CLIENT_ID),
|
|
redirect_uri: assertSecret(import.meta.env.PUBLIC_PATREON_REDIRECT_URI),
|
|
scope: 'identity',
|
|
});
|
|
|
|
return `https://www.patreon.com/oauth2/authorize?${params}`;
|
|
}
|