Skip to main content

Verify Google 2FA

POST 

/v1/auth/google-2fa-verification

Verify Google 2FA

The verify google 2fa endpoint is designed to authenticate users through Google's Two-Factor Authentication (2FA) system. It validates the user's credentials and verifies the 2FA code sent via email. Upon successful verification, it renews the user's session, generates new tokens, updates the last login timestamp, retrieves user details, and returns a JSON response containing user information along with access and refresh tokens. This endpoint ensures secure authentication by enforcing time-limited codes and validating them against stored values.

Request

Body

required
    email stringrequired
    emailCode stringrequired
    passwordHash stringrequired
    sessionId stringrequired

Responses

Google 2FA verified

Schema
    accessToken stringrequired
    createdAt date-timerequired
    device stringrequired
    deviceCreatedAt date-timerequired
    email stringrequired
    hpkePubKey binarynullable
    id uuidrequired
    lastLogin date-timenullable
    lastTransaction date-timenullable
    nickname stringrequired
    refreshToken stringrequired
    status stringrequired
Loading...