Last updated

setAuthentication()

Sets the authentication state using a JWT token.

Signature

window.FairShareSDK.setAuthentication(jwt);

Parameters

ParameterTypeDescription
jwtstringJWT authentication token

Example

// Set authentication with JWT token
window.FairShareSDK.setAuthentication("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...");