Validating the token on the back end
This commit is contained in:
		@ -75,7 +75,7 @@ export function checkAuth(api) {
 | 
			
		||||
 | 
			
		||||
        const requestOptions = {
 | 
			
		||||
            method: "POST",
 | 
			
		||||
            Headers: myHeaders,
 | 
			
		||||
            headers: myHeaders,
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        fetch(api + "/api/is-authenticated", requestOptions)
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user