add getToken util function

This commit is contained in:
Abhinav-grd 2021-01-15 16:44:24 +05:30
parent 583ab4ffaa
commit 3ee31c9a0e

View file

@ -12,3 +12,7 @@ export const getActualKey = async () => {
const key: string = await cryptoWorker.decryptB64(encryptedKey, session.sessionNonce, session.sessionKey);
return key;
}
export const getToken = () => {
return getData(LS_KEYS.USER).token;
}