refactor(auth): Increased token timeouts to 24hrs/7days
This commit is contained in:
		@@ -61,11 +61,11 @@ export class CreateAuth {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        //Create the access token
 | 
			
		||||
        const timestamp_accesstoken_expiry = Math.floor(Date.now() / 1000) + 5 * 60
 | 
			
		||||
        const timestamp_accesstoken_expiry = Math.floor(Date.now() / 1000) + 24 * 60 * 60
 | 
			
		||||
        newAuth.access_token = JwtCreator.createAccess(found_user, timestamp_accesstoken_expiry);
 | 
			
		||||
        newAuth.access_token_expires_at = timestamp_accesstoken_expiry
 | 
			
		||||
        //Create the refresh token
 | 
			
		||||
        const timestamp_refresh_expiry = Math.floor(Date.now() / 1000) + 10 * 36000
 | 
			
		||||
        const timestamp_refresh_expiry = Math.floor(Date.now() / 1000) + 7 * 24 * 60 * 60
 | 
			
		||||
        newAuth.refresh_token = JwtCreator.createRefresh(found_user, timestamp_refresh_expiry);
 | 
			
		||||
        newAuth.refresh_token_expires_at = timestamp_refresh_expiry
 | 
			
		||||
        return newAuth;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user