Closed kramer99 closed 3 weeks ago
Hi @kramer99 , with Next.js you need to set up a specific route to be able to retrieve the callback. So you have a sample of your callback url informations and query string?
Here's my callback:
import React from 'react';
import { useOidc } from '@axa-fr/react-oidc';
import { useRouter } from 'next/router';
import Loader from '../../components/Loader';
const Page = () => {
const { isAuthenticated } = useOidc();
const router = useRouter();
if (isAuthenticated) router.push('/');
else router.push('/signin');
return <Loader />;
};
export default Page;
...it never gets called though, as the /authorize
endpoint on the IDP is not even redirected to to begin with.
Did you find a solution @kramer99 ?
Issue and Steps to Reproduce
Trying out the service worker approach after using the local storage approach successfully.
The app gets stuck on the Loading component. It does not start the
/authorize
flow.This is a NextJs app.
config:
OidcTrustedDomins.js:
I added some logging with the
onEvent
prop and was able to see that the service worker is installed and running:Versions
7.22.5