Skip to main content

Verify device

POST 

/auth/device-ownership-verification

Verify device

The verify device ownership endpoint allows users to confirm ownership of a new device by verifying a secret token sent to their registered email address. It requires the user's email, hashed password, device secret, and an email verification code. Upon successful validation, the endpoint updates the user's session, stores the device secret, and returns a user session object including tokens for authentication.

Request

Body

required
    deviceSecret stringrequired
    email stringrequired
    emailCode stringrequired
    passwordHash stringrequired
    sessionId stringrequired

Responses

Device ownership 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...