gary-archer / oauth.mobilesample.ios

Final OpenID Connect secured iOS Mobile Code Sample
MIT License
29 stars 1 forks source link

Customizing the alert message that pops up when the user taps log out #13

Closed ahmedbahgatfl closed 10 months ago

ahmedbahgatfl commented 11 months ago

I'm trying to change the alert message that pops up to the user when the user taps Logout button, because the current one is misleading as it is the same message for signing the user in , is there a way to change it?

Simulator Screen Shot - iPhone 14 Pro - 2023-09-21 at 15 47 35

gary-archer commented 11 months ago

Nope - you can't change it, and it is a usability issue. The best resolution is to implement logout by simply removing tokens, then including the prompt=login OIDC parameter on the next login. See this example.

I would do this in my example, but AWS Cognito does not support the prompt parameter. I would therefore recommend using an authorization server with better support for standards.