daily pastebin goal
47%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export function renewToken() {
  2.     return {
  3.         types: [RENEW_TOKEN, RENEW_TOKEN_SUCCESS, RENEW_TOKEN_FAILURE],
  4.         promise: () => new Promise((resolve, reject) => (webAuth.checkSession(
  5.             {redirectUri: `${window.location.origin}/console/silentCallback`},
  6.             function (err, data) {
  7.                 if (err) {
  8.                     reject(err);
  9.                 } else {
  10.                     resolve(data);
  11.                 }
  12.             })))
  13.     };
  14. }
RAW Paste Data
Top