Skip to main content

<ThunderIDLoading />

The ThunderIDLoading component renders its default slot while the authentication state is being resolved. It is useful for showing skeleton screens or spinners during the initial hydration phase.

Usage

pages/index.vue
<template>
<ThunderIDLoading>
<p>Loading...</p>
</ThunderIDLoading>

<ThunderIDSignedIn>
<p>Welcome back!</p>
</ThunderIDSignedIn>

<ThunderIDSignedOut>
<ThunderIDSignInButton />
</ThunderIDSignedOut>
</template>
note

On SSR-rendered pages, the auth state is available on first render and <ThunderIDLoading> content will typically not be visible. It is most relevant for pages that are only rendered client-side.

Slots

SlotDescription
defaultContent rendered while isLoading is true
ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© WSO2 LLC. All rights reserved.Privacy PolicyCookie Policy