Fixed getting token with cookies set