Skip to main content
Docs

<SignedIn>

Overview

The <SignedIn> component offers authentication checks as a cross-cutting concern. Any children components wrapped by a <SignedIn> component will be rendered only if there's a user with an active session signed in your application.

Caution

This component only visually hides its children when the current user is not authenticated. The contents of its children remain accessible via the browser's source code even if the user fails the authentication check. Do not use this component to hide sensitive information that should be completely inaccessible to unauthorized users. For truly sensitive data, perform authorization checks on the server before sending the data to the client.

App.vue
<script setup lang="ts">
// Components are automatically imported
</script>

<template>
  <SignedIn>
    <div>You are signed in.</div>
  </SignedIn>
  <p>This content is always visible.</p>
</template>
  • Name
    treatPendingAsSignedOut?
    Type
    boolean
    Description

    A boolean that indicates whether to treat as signed out. Defaults to true.

Feedback

What did you think of this content?

Last updated on