The Portal Web SDK offers various approaches to authenticating. The main reason for this is to allow you to strike the right balance between integration time and security.
clientApiKey
for the apiKey
option when initializing Portal
.
GET
request to https://api.portalhq.io/api/v1/custodians/clients/${clientId}/web-otp
using your CUSTODIAN_API_KEY
as a Bearer
token.Portal
with the delivered OTP as the authToken
initialization option.authUrl
option when initializing Portal
.
The steps required to accomplish this are:
https://web.portalhq.io/clients/token/validate?otp=YOUR-WEB-OTP
https://web.portalhq.io
on your new routePortal
with your authUrl