initial commit
This commit is contained in:
7
resources/js/router/utils.js
Normal file
7
resources/js/router/utils.js
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Return if user is logged in
|
||||
* This is completely up to you and how you want to store the token in your frontend application
|
||||
* e.g. If you are using cookies to store the application please update this function
|
||||
*/
|
||||
export const isUserLoggedIn = () =>
|
||||
!!(localStorage.getItem("userData") && localStorage.getItem("accessToken"));
|
Reference in New Issue
Block a user