isAuthenticated()
Use isAuthenticated
to check if the user is authenticated or not.
const isAuthenticated = auth.isAuthenticated()
if (isAuthenticated) {
console.log('User is authenticated')
}
isAuthenticated()
Use isAuthenticated
to check if the user is authenticated or not.
const isAuthenticated = auth.isAuthenticated()
if (isAuthenticated) {
console.log('User is authenticated')
}