How to Sign Out of Google After Being Authenticated

后端 未结 6 1086
伪装坚强ぢ
伪装坚强ぢ 2021-02-06 23:54

So my app has the option to sign in with Google. Upon clicking the button that Google provides, a web view opens and has the user input their credentials. After allowing the app

6条回答
  •  佛祖请我去吃肉
    2021-02-06 23:55

    Yes, like @Rahul said following code would be the right way of going about it.

    GIDSignIn.sharedInstance().signOut()
    

    https://developers.google.com/identity/sign-in/ios/sign-in?ver=swift#sign_out_the_user

提交回复
热议问题