Skip to content

Conversation

JonathanLeeWH
Copy link
Contributor

@JonathanLeeWH JonathanLeeWH commented Oct 31, 2020

  • Added GET auth api endpoint to get user information from authorisation token found in the authorization request header
  • Added tests GET auth api endpoint in request directory
  • Refactor existing source code with jwtUtils.js where getReqAuthToken and verifyAuthToken are their own separate methods

After some considerations, this will be the last update to the auth API endpoint before migration to firebase Authentication #68.

Originally, there were plans to improve on the JWT authentication such as adding expiry to the JWT tokens for security, adding refresh tokens, etc but this will be replaced with firebase Authentication which is planned for the release after the 0.1.0 release.

As such #62 will be closed after this PR.

Added GET auth api endpoint to get user information from authorisation token found in the authorization request header
Added tests GET auth api endpoint in request directory
Refactor existing source code with jwtUtils.js where getReqAuthToken and verifyAuthToken are their own separate methods
@JonathanLeeWH JonathanLeeWH added enhancement New feature or request Testing Related to testing code quality Related to code quality labels Oct 31, 2020
@JonathanLeeWH JonathanLeeWH self-assigned this Oct 31, 2020
@JonathanLeeWH JonathanLeeWH added this to the Version 0.1.0 milestone Nov 7, 2020
@JonathanLeeWH JonathanLeeWH merged commit 37cc97a into master Nov 7, 2020
@JonathanLeeWH JonathanLeeWH deleted the Refactor-login-api-to-auth-api branch November 7, 2020 10:00
@JonathanLeeWH JonathanLeeWH added the status.done Done and ready for review and merge label Nov 7, 2020
@JonathanLeeWH
Copy link
Contributor Author

#62 closed as JWT Authentication will be replaced by firebase Authentication which require a rewrite in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality Related to code quality enhancement New feature or request status.done Done and ready for review and merge Testing Related to testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant