ChessCom / browser-extension

Customize your Chess.com experience
Other
48 stars 15 forks source link

Add logout button #69

Open emilgoldsmith opened 7 years ago

emilgoldsmith commented 7 years ago

As far as I can see there's currently no way to log out from within the extension, correct?

martynchamberlin commented 7 years ago

Correct, there currently is no logout button. Let me check with the team and get back with you on this.

martynchamberlin commented 7 years ago

@emilgoldsmith All right, let's build this if you wish! Where would you put the logout button?

emilgoldsmith commented 7 years ago

Good question... What about making the link to your own user-page (see red box below) a dropdown?

logout button

as mentioned earlier I'm more of a back-end guy than a designer or strong front-end developer though I know some front-end. But again, as a user, I feel that it's intuitive that the image of me in the corner could be an options dropdown? We could also add a few more options in that case I guess, like "go to settings", "go to member page" or other links to different things that were related to you as a user.

What do Chess.com UX experts say to that?

martynchamberlin commented 7 years ago

Let's try to mimic the dropdown design at chess.com as much as possible. Here's a quick comp I threw together of what this could look like.

screen shot 2017-03-14 at 4 17 02 pm
emilgoldsmith commented 7 years ago

Yeah exactly, something like that would be great.

nathanpdaniel commented 6 years ago

@martynchamberlin (or anyone who knows the answer)... You wouldn't happen to know a good route for Log Out, would you? https://www.chess.com/logout is not a good route from the extension (it puts a big red banner at the top and asks if the user "meant" to logout with a link to actually logout).

Once I can get that route, I'll create a PR which gives the above functionality.

I'll also do some more digging to see if I can't find the proper way to logout from the extension.

martynchamberlin commented 6 years ago

@nathanpdaniel The challenge here is that our logout is a POST and requires an internal CSR token that gets validated on the server. We'd have to build out an API method that allows the user to log out without this token.

Cc @termleech