fixed auth.GetSession failure
Finished authorize function, stores user authorized key