New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@elliemae/pui-app-sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elliemae/pui-app-sdk

EllieMae Platform UI Application SDK

1.3.0
Version published
Weekly downloads
254
-42.01%
Maintainers
3
Weekly downloads
 
Created

pui-app-sdk

Build Status

FAQ

  • How do i refresh API auth tokens when my session expires ?

    Subscribe to the Authorization failure callback and implement logic to refresh your API Auth token. Pass the authorization header back to sdk. SDK will resubmit the failed request with new token.

    Sample code snippet

      import { onAuthorizationFailure } from '@elliemae/pui-app-sdk';
      const refreshToken = () =>
        new Promise(resolve => {
          //get your new token
          const authorizationHeader = 'xyz'; //store new header value;
          sessionStorage.setItem('Authorization', authorizationHeader);
          resolve(authorizationHeader);
        });
      onAuthorizationFailure(refreshToken);
    

FAQs

Package last updated on 16 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts