fix: set redirect url correctly
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 33s
All checks were successful
deploy to cloudflare pages / deploy (push) Successful in 33s
This commit is contained in:
parent
79445dd9a3
commit
ee5ed04bcb
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
import { Discord } from "arctic";
|
||||
import { DISCORD_CLIENT_ID, DISCORD_CLIENT_SECRET } from "$env/static/private";
|
||||
import { PUBLIC_BASE_URL } from "$env/static/public";
|
||||
|
||||
export interface DiscordUser {
|
||||
id: string;
|
||||
|
@ -10,5 +11,5 @@ export interface DiscordUser {
|
|||
export const discord = new Discord(
|
||||
DISCORD_CLIENT_ID,
|
||||
DISCORD_CLIENT_SECRET,
|
||||
"http://localhost:8788/login/callback",
|
||||
`${PUBLIC_BASE_URL}/login/callback`,
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue