File size: 279 Bytes
f5071ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import jwtDecode from "jwt-decode";
import token from "./GetJwtToken";

const activeUser = async () => {
	try {
		console.log("i am randing !!");
		const jwt = token();
		const user = jwtDecode(jwt);
		return user;
	} catch (e) {
		return null;
	}
};

export default activeUser;