[101] (Amber) Refactoring okta redirect code