Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged

Conversation

xabierarima
Copy link
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
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
Contributor Author

Hi @mraible,

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

@mraible
Copy link
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
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
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
Collaborator

mraible commented May 29, 2024

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