question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

add signout() method to UserSession

See original GitHub issue

I think we should add userSession.signout() which under the hood would call the (apparently undocumented cc @patrickarlt) oauth2/signout REST end point.

I swear I already opened this issue, but I can’t find it. @skitterm also recently asked me about this, so that’s 2 interested parties.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tomwaysoncommented, Aug 24, 2018

I agree w/r/t esri_auth cookie, but I think invalidating the token is useful for everyone.

1reaction
tomwaysoncommented, Aug 24, 2018

even more than clearing the cookie is invalidating the token. I assume that’s part of the magic the oauth2/signout endpoint does, but I could be mistaken.

I did not know that, but it would make sense. If so, it seems like docs around that endpoint could be useful to others beyond us “Online” developers.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 8: Log in, log out | Ruby on Rails Tutorial (3rd Ed.)
In this section and Section 8.2, we'll use the Rails method called session to make ... We'll then complete user login in Section...
Read more >
Firebase logout user all sessions - Stack Overflow
Generating id for a user session every time user is logging in. Add this id to ... return buf[0]; } function signin(){ firebase.auth()....
Read more >
Write a web app that signs in/out users - Microsoft Entra
Learn how to add sign-in to the code for your web app that signs in users. Then, learn how to let them sign...
Read more >
User LogIn and LogOut for React | Back4app Guides
logIn method stores in your local storage a valid user session, so future calls to methods like current will successfully retrieve your User...
Read more >
Client API - NextAuth.js
In order to logout, use the signOut() method to ensure the user ends back on the page they started on after completing the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found