capacitor-community / generic-oauth2

Generic Capacitor OAuth 2 client plugin. Stop the war in Ukraine!
MIT License
223 stars 106 forks source link

Feat: Logout feature ios, android and web #209

Open sallyg1 opened 1 year ago

sallyg1 commented 1 year ago

is Logout feature ready to be use ? I see this in the definitions file

/**
 * @since 3.1.0 ... not implemented yet!
 */
logoutUrl?: string;

onLogoutClick() { OAuth2Client.logout( oauth2LogoutOptions ).then(() => { // do something }).catch(reason => { console.error("OAuth logout failed", reason); }); }

Where how do we specify oauth2LogoutOptions ?

meriturva commented 1 year ago

I can confirm that logout is not working as expected. Just clear local storage and nothing more.

meriturva commented 1 year ago

See: https://github.com/moberwasserlechner/capacitor-oauth2/issues/97