API
⭐️ identity.setup
POST https://identity.api.rivet.gg/v1/identities
curl -X POST -d '@body.json' 'https://identity.api.rivet.gg/v1/identities'

Authorizations

Authorization[header]required
string

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

existing_identity_token
string

Documentation at https://jwt.io/

Response

game_idrequired
string
identityrequired
object

Information about the identity that was just authenticated.

identity_tokenrequired
string

Token used to authenticate the identity. Should be stored somewhere permanent. Pass this to rivet.api.identity#Setup$existing_identity_token next time rivet.api.identity#Setup is called. Token has a 90 day TTL. This means that if rivet.api.identity#Setup is not called again within 90 days, the token will no longer be valid. If this happens, the user can recover their account through the linking process (see rivet.api.identity#PrepareGameLink). This token should be stored locally and never sent to a server or another device. If this token is compromised, anyone with access to this token has control of the identity.

identity_token_expire_tsrequired
string

If this token is comprimised, anyone with access to this token has control of the identity.