CDP Frontend SDK
    Preparing search index...

    Function getCurrentUser

    • Gets the currently signed-in user, if any.

      Returns Promise<null | User>

      The currently signed-in user, or null if no user is signed in.

      const user = await getCurrentUser();