Skip to content

fix error when calling signout method with revoketokens set to true#226

Merged
mraible merged 1 commit intowi3land:masterfrom
xabierarima:fix/fix-token-revocation-signout
Sep 26, 2023
Merged

fix error when calling signout method with revoketokens set to true#226
mraible merged 1 commit intowi3land:masterfrom
xabierarima:fix/fix-token-revocation-signout

Conversation

@xabierarima
Copy link
Copy Markdown
Contributor

This branch fixes this issue: #220

Calling the signOut method with revokeTokens set to true fails because revokeTokens deletes the token from the storage and then the signOut method tries to delete the same token again. My fix is to check that the token exists before deleting it.

I have also made a change to performEndSessionRequest. I don't check if _tokenSubject.value is undefined because if revokeTokens has been called before it will be undefined but we still want to call end session endpoint.

@mraible
Copy link
Copy Markdown
Collaborator

mraible commented Sep 26, 2023

Thank you for your contribution, @xabierarima!

@mraible mraible merged commit f09085f into wi3land:master Sep 26, 2023
@xabierarima
Copy link
Copy Markdown
Contributor Author

Hi @mraible,

Could you please create a new release that includes the changes from this PR?

@mraible
Copy link
Copy Markdown
Collaborator

mraible commented May 29, 2024

@xabierarima I don't have the ability to do a release. Only @wi3land can do a release.

@wi3land
Copy link
Copy Markdown
Owner

wi3land commented May 29, 2024

@mraible I gave you access to do releases last year via a GitHub action, you just need to create a new release and publish it.

@mraible
Copy link
Copy Markdown
Collaborator

mraible commented May 29, 2024

@wi3land I'm sorry, that slipped my mind. I'll try to do a release now.

FWIW, I was laid off from Okta in February, so my interest in this space could change depending on what I do next. However, we still use this library in Ionic for JHipster and I'm interested in maintaining that functionality.

@mraible
Copy link
Copy Markdown
Collaborator

mraible commented May 29, 2024

v2.1.0 has been published. https://github.com/wi3land/ionic-appauth/releases/tag/v2.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants