Skip to content

ServiceWorker.js issue can't be initialized #1122

@antosimi

Description

@antosimi

Issue and Steps to Reproduce

Hi i added last version of oidc-client : "@axa-fr/react-oidc": "^7.0.1", but i get :

image

I have in public folder a Service worker.js. This is the config:
image

I added the oidc provider in App.tsx and it includes all the routes.
This is where i use it in the LoginForm.tsx:
image
Maybe I am missing something, or it could be a bug ?

P.S. I have 2 more questions for better understanding the flow, is there a default redirect_url I can use in order for the oidc-client package to manage the oauth2 login till I get the token, because I don't want to actually create the requests from scratch, or where in the examples on github is the resirect url treated ? The second question is regarding the OidcTrustedDomains , I see I need to add my localhost:3000. but should I let the others domains in that file, or just complete with mine, and it is mandatory to change that file in order to function ? Thank you.

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