Custom singup and login flow

When i m trying to continue the auth after the redirection rule its saying unauthorize