Verify or create a user from an external auth system JWT
sub (external user ID) and iss (your Replyke project
ID). The userData claim may contain optional profile fields.userJwt must contain:
| Claim | Required | Description |
|---|---|---|
sub | Yes | External user ID. Stored as foreignId on the Replyke user. |
iss | Yes | Your Replyke project ID. Must match the request project. |
userData | No | Object with optional profile fields (see below). |
userData fields| Field | Type | Description |
|---|---|---|
email | string | Email address |
name | string | Display name |
username | string | Username |
avatar | string | Avatar URL |
bio | string | Bio text |
location | object | { latitude, longitude } |
birthdate | string | ISO 8601 date |
metadata | object | Public custom data |
secureMetadata | object | Private custom data |
true on success.Missing JWT Keys — 403
Invalid Token — 403
Project ID Mismatch — 403
iss claim in the JWT does not match the request project ID.Username Already Taken — 409