Skip to content

Client specified not to prompt and blank page after session expire #77

@polklabs

Description

@polklabs

I'm submitting a:

  • Bug report
  • Feature request
  • Other (Describe below)

Current behavior

When opening app which requires okta authentication the user is not redirected to sign in. They just see a blank page with nothing.
In the console is the error: The client specified not to prompt, but the user is not logged in
To trigger redirect you have to refresh the page (opening dev tools also triggers redirect)

Expected behavior

Okta automatically redirects user to sign in page and then returns user to app after login

Minimal reproduction of the problem with instructions

Steps to reproduce:

  1. login to the web app
  2. close the browser (no logout)
  3. wait for the token and the refresh token to expire
  4. open the web app

blank page, no redirect with error message in console.
The client specified not to prompt, but the user is not logged in

Extra information about the use case/user story you are trying to implement

It was working perfectly in the old version
"@okta/okta-angular": "^3.1.0",
"@okta/okta-auth-js": "^4.9.1",
but has stopped working since updating

Environment

  • Package version: 4.1.0
  • Angular version: 10.2.3
  • Browser: Chrome
  • OS: win32 x64
  • Node version (node -v): 16.13.0
  • Other: @okta/okta-auth-js: 5.6.0

Configuration

  • Okta application type: Okta hosted signin widget

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions