6 lines
158 B
JavaScript
6 lines
158 B
JavaScript
|
function getSession() {
|
||
|
const sessionStr = localStorage.getItem('sessionData');
|
||
|
if (!sessionStr)
|
||
|
return null;
|
||
|
return JSON.parse(atob(sessionStr));
|
||
|
}
|