initial commit
This commit is contained in:
6
util/getJwt.js
Normal file
6
util/getJwt.js
Normal file
@@ -0,0 +1,6 @@
|
||||
export default req => {
|
||||
if(req) return req.jwt;
|
||||
if(typeof window !== 'undefined') {
|
||||
return window.localStorage.getItem('jwt');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user