SHARE
TWEET

getSessionInfo

dimitrix85 Dec 5th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. export function getSeesionInfo(ctx) {
  2.     ctx.loggedIn = sessionStorage.getItem("authtoken") !== null;
  3.     ctx.username = sessionStorage.getItem("username");
  4.     ctx.id = sessionStorage.getItem("id");
  5. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top