UNPKG

@nextcloud/auth

Version:

Nextcloud helpers related to authentication and the current user

16 lines (15 loc) 434 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;