getAuth

Get an authorization token to use with JWKS

Syntax

messageHandler.getAuth().then(function(state){//do something});
  
  // or
  
let status=await messageHandler.getAuth();

The AuthToken Object

  1. uid: The unique identifier of the JWKS token
  2. token: The compact JWS token
  3. expiry_date: The expiry date of the token

{
    "uid": "eyJ0eXAiOiJKV1QiLA0KIC",
    "token": "eyJ0eXAiOiJKV1QiLA0KICJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJqb2UiLA0KICJleHAiOjEzMDA4MTkzODAsDQogImh0dHA6Ly9leGFtcGxlLmNvbS9pc19yb290Ijp0cnVlfQ.dBjftJeZ4CVP-mB92K27uhbUJU1p1r_wW1gFWFOEjXk",
    "expiry_date": "2021-07-20T14:00:00.000Z"
}


📘

To learn more about the JWKS tokens process click here