Implementing OAuth with ASWebAuthenticationSession |

Learn about what OAuth is and how to implement it using ASWebAuthenticationSession.

This is a companion discussion topic for the original entry at

[AXRuntimeCommon] Unknown client: AuthHub
Why this happened after the SignIn button tapped?

Hi :slight_smile:

Would you be able to provide more details on this error, perhaps a snippet of your code, or a screenshot of your Xcode editor to be able to see more of the logs and code?

Thanks in advance :slight_smile:

Thanks for the tutorial!

In case anyone else keeps getting the “Failed to get user, or there is no valid/active session” error, check that you have a value in the ‘name’ field in your GitHub account.

Took me a while to track that one down :slightly_smiling_face:


Thank you very much for that tip to fellow readers! Glad you enjoyed the tutorial :smile:

Thanks, this was very helpful!

Also, if your repositories are private you won’t see them on the app, they need to be public repos.

Great tutorial, learned a lot!

Glad to have helped.

Thanks for that tip regarding repository privacy :slight_smile:

Happy coding!


Changing the “name” property of the User struct to optional also works :slight_smile: