Skip to main content
POST
Finish an OAuth sign-in

Body

application/json
provider
enum<string>
required
Available options:
google,
discord,
telegram
code
string
required

The authorisation code from the provider's redirect.

state
string
required

The state from the redirect. Must have been minted for the same provider within 10 minutes.

Response

Signed in, or a second factor is required.

success
boolean
required
data
object
required

Session issued by an OAuth or Telegram Mini App sign-in. The user object also carries bannedAt.