Mentorship-android: Handle app with token has expired

Created on 29 Nov 2018  路  10Comments  路  Source: anitab-org/mentorship-android

Description

As a user of the Android app,
I need logout automatically when the token is expired,
so that I can login again and get a new session token.

Verify if login has expired and logout from the app, maybe show an alert dialog before?! Implementation is open for discussion

Mocks

image

Acceptance Criteria

Update [Required]

  • [ ] When token expires the app should logout and show Login screen

Definition of Done

  • [ ] All of the required items are completed.
  • [ ] Approval by 1 mentor.

Estimation

2 hours

Coding Bug

Most helpful comment

Can we put to his on hold. This is not how expired tokens are handled. This needs to be discussed.

All 10 comments

I want to work on this issue.

Hey @chhavi1614 go ahead!

Can we put to his on hold. This is not how expired tokens are handled. This needs to be discussed.

Sure @m-murad! In fact @chhavi1614 can bring this up on slack for furtherer discussion, and when you have some free time you can help us understand that. It's with timers right? A timer running in the background to detect when the toke has expired. I wrote in the description saying it needed discussion.

@isabelcosta, @chhavi1614 or anyone who is interested in this or wants to fix this, please go through this article.

@chhavi1614 let us know if you want to take on this issue, and if you read @m-murad 's article, I read quickly and this gives me the impression, we need to do something on the backend.
cc @m-murad correct me if I'm wrong, in this way we need to know so that we can put this on hold, and open an issue on backend.

@isabelcosta
You are right, things will have to be implemented on the backend.

@isabelcosta I am learning how to handle token and getting familiar with the backend and i think it will take some time till then you can put this on hold and open an issue on backend ...
Also it would be great if you @isabelcosta and @m-murad can guide me a little on how to proceed with this issue..

Ok @chhavi1614 I will create the issue in the backend if you want to take on the issue feel free to leave there a comment to say you want that issue. We have no problem at all if it takes time for you to understand the backend, that's totally understandable :) We'll guide you as we get time to do so, don't worry. Feel free to keep asking questions either here or on the Slack.

Closing since this feature is implemented in current version.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yatri1609 picture yatri1609  路  5Comments

iofall picture iofall  路  3Comments

Kavya-24 picture Kavya-24  路  8Comments

isabelcosta picture isabelcosta  路  4Comments

ghost picture ghost  路  5Comments