redirect to login from api reference if unauthenticated