JavaScript
const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: JSON.stringify({email: 'jsmith@example.com', otp: '<string>', shareToken: '<string>'}) }; fetch('https://gp-auth-module.prod.gnosispay.com/user', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
{ "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "accessToken": "<string>" }
Register a new user with email OTP verification and create a profile in core api. You receive a new JWT access token with user id that you can use to authenticate requests to the API. Optionally provide a shareToken for Sumsub reusable KYC.
6
Optional Sumsub share token for reusable KYC
User registered successfully