fix(auth): change to use environment endpoint