Open tjhiggins opened 7 months ago
Hi @tjhiggins, afaik useRouter().push
works with external URLs already, so this change wouldn't change anything. However, it's possible that the callback url is not being applied properly because of this :
Could you confirm that this is what you'd expect?
It would be very helpful if you could provide a minimal reproduction.
@Hebilicious thanks for the quick reply!
The current code is only using the path of the url for the router push:
path: new URL(url).pathname
So my callback is currently /oidc/logout
without the correct external host or query params.
Got it. This should be a pretty straightforward change then.
Yes, this is an issue for Keycloak since clicking "signOut" only sign you out of the application, and not from the SSO.
So the next time you click "signIn", you are automatically logged back, without having to input your username/password.
Hi is this resolved? I have the same issue as @mrleblanc101
Describe the feature
The current logic only supports internal routing after signOut.
My use case:
Code to alter: https://github.com/Hebilicious/authjs-nuxt/blob/3c5928aecaf02779b71341a10567260d5c11e772/packages/authjs-nuxt/src/runtime/lib/client.ts#L136
Easy workaround is to copy the signOut method and change the useRouter line to the following:
Additional information