Skip to main content
Version: 0.38.62

RPCAuthorizeArgs

Index

Properties

client_id

client_id: string

OAuth2 application id

optionalcode_challenge

code_challenge?: null | string

PKCE code challenge

optionalcode_challenge_method

code_challenge_method?: null | string

PKCE code challenge method

optionalnonce

nonce?: null | string

Nonce to include in the authorization request

optionalprompt

prompt?: null | consent | none

How to handle existing authorizations

optionalresponse_type

response_type?: null | string

OAuth2 response type; defaults to code (token is not supported)

optionalscope

scope?: null | string | OAuth2Scopes[]

Scopes to authorize, as a space-separated string or an array

@remarks

If neither scope nor scopes is set, no scopes are requested.

optionalscopes

scopes?: null | string | OAuth2Scopes[]

Legacy alias for scope; takes precedence over scope if both are set

optionalstate

state?: null | string

optionalusername

username?: string

username to create a guest account with if the user does not have Discord