Skip to main content

<ThunderIDSignedIn />

The ThunderIDSignedIn component renders its default slot only when the user is authenticated. It is the Vue equivalent of the React <SignedIn /> component and is auto-registered by the Nuxt module.

Usage

Basic Usage

pages/index.vue
<template>
<ThunderIDSignedIn>
<p>Welcome! You are signed in.</p>
</ThunderIDSignedIn>
</template>
note

If the user is not signed in, nothing is rendered unless you provide content in the fallback slot.

Fallback Slot

Use the fallback slot to show alternative content when the user is not authenticated:

pages/index.vue
<template>
<ThunderIDSignedIn>
<p>Welcome! You are signed in.</p>
<template #fallback>
<p>Please sign in to continue.</p>
</template>
</ThunderIDSignedIn>
</template>

Slots

SlotDescription
defaultContent rendered when the user is authenticated
fallbackContent rendered when the user is not authenticated

Explore with AI

ThunderID LogoThunderID Logo

Product

DocsAPIsSDKs
© Copyright Linux Foundation Europe.For web site terms of use, trademark policy and other project policies please see https://linuxfoundation.eu/en/policies.