Check if there's a valid authentication token for a specific baseURL
Optional
The base URL for the API (defaults to localhost:3000)
True if a valid token exists
if (hasValidToken()) { console.log('User is authenticated');} Copy
if (hasValidToken()) { console.log('User is authenticated');}
Check if there's a valid authentication token for a specific baseURL