UNPKG

@nextcloud/auth

Version:

Nextcloud helpers related to authentication and the current user

22 lines (21 loc) 537 B
import { NextcloudUser } from './user.ts'; /** * Get the currently Guest user or null if not logged in */ export declare function getGuestUser(): NextcloudUser; /** * Get the guest nickname for public pages */ export declare function getGuestNickname(): string | null; /** * Set the guest nickname for public pages * * @param nickname - The nickname to set */ export declare function setGuestNickname(nickname: string): void; /** * Reset the guest user state. * * @internal */ export declare function resetGuestUser(): void;