Skip to content

User is being signed out after page reload #530

Open
@ozmar-11

Description

@ozmar-11

I'm submitting a...

  • Regression (a behavior that used to work and stopped working in a new release)
  • Bug report
  • Performance issue
  • Feature request
  • Documentation issue or request
  • Other... Please describe:

Current behavior

When using OAuth in the same window the authData is not being saved in local storage, just in memory which leads the user to be signed out when the page is reloaded, this issue doesn't happen when using OAuth in new window mode

Expected behavior

The authData should be persisted in local storage, doesn't matter the way he signs in

What is the motivation / use case for changing the behavior?

The users can be tempted to reload the page for any reason, and their session should be persisted so they are nor signed out if their session is still valid

Environment

Angular-Token version: 7.0.1
Angular version: 9.1.9

Bundler

  • Angular CLI (Webpack)
  • Webpack
  • SystemJS

Browser:

  • Chrome (desktop) version XX
  • Chrome (Android) version XX
  • Chrome (iOS) version XX
  • Firefox version XX
  • Safari (desktop) version XX
  • Safari (iOS) version XX
  • IE version XX
  • Edge version XX

Others:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions