Systers, an AnitaB.org community

[Mentorship - Android] Logout a user when JWT expires

Prerequisite:

  1. Fork and clone the project from the github repository
  2. Follow the documentation for successfully setting up the project
  3. Open Project in Android Studio

Steps:

  1. When a user logs in he/she is issued a JSON Web Token(JWT).
  2. If the token expires he/she cannot make requests and the server sends a 401 error code.
  3. Detect an expired token using Okhttp Authenticator and logout the user. You can read more here

Resources:

Work Submission:

After successfully fixing this issue, commit and make a Pull Request. Title of PR should contain "Program:GCI"

  1. Commit Message Style Guide
  2. Sample PR structure
  3. Make sure to attach either screenshot or GIF of the fixed issue

Task tags

  • kotlin
  • android
  • jwt

Students who completed this task

_daksha_, asawesome07, HardikJH, i_maier

Task type

  • code Code
close

2019