keycloakify / oidc-spa

Openid connect client for Single Page Applications
https://www.oidc-spa.dev
MIT License
48 stars 6 forks source link

Get loading state #15

Closed Nichtmetall closed 7 months ago

Nichtmetall commented 7 months ago

Hey, me again. I would like to be able to display a component while the authentication is still loading. Preferably via useOidc, also possible in the OidcProvider. For example, if you have logged in, but the forwarding to the application takes a while.

garronej commented 7 months ago

Hello @Nichtmetall,

I think this is possible already.
You can provide a fallback node as props to the .

https://docs.oidc-spa.dev/getting-started/usage

image
Nichtmetall commented 7 months ago

Hey @garronej , thank you very much!