dimitrix85

getSessionInfo

Dec 5th, 2019
82
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