Shift3 / boilerplate-client-angular

The Bitwise standard starting point for new Angular projects
2 stars 0 forks source link

fix,test(infra): Simple token fix #383

Closed pratimasakinala closed 2 years ago

pratimasakinala commented 2 years ago

Changes

  1. Renames token field to match server.
  2. Refactors services to use the new name.

Purpose

To make the client work with the changes from PR 369.

Approach

This uses the token field now returned by the server and ensures the user can stay logged in by not running JWT-specific checks on the token.

Testing

  1. Login with your user.
  2. Logging in should work.
  3. If you refresh, open a new tab, or reopen the browser, you should stay logged in.

Learning

The fix that was implemented on React BP for this.

Closes #382