mirror of
https://github.com/diced/zipline.git
synced 2025-05-11 18:36:02 +02:00
add: discord auto continue on oauth screen
This commit is contained in:
parent
ef0580655d
commit
013207856a
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export const discordAuth = {
|
|||
url: (clientId: string, origin: string, state?: string, redirectUri?: string) =>
|
||||
`https://discord.com/api/oauth2/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(
|
||||
redirectUri ?? `${origin}/api/auth/oauth/discord`,
|
||||
)}&response_type=code&scope=identify${state ? `&state=${encodeURIComponent(state)}` : ''}`,
|
||||
)}&response_type=code&scope=identify&prompt=none${state ? `&state=${encodeURIComponent(state)}` : ''}`,
|
||||
user: async (accessToken: string) => {
|
||||
const res = await fetch('https://discord.com/api/users/@me', {
|
||||
headers: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue