UNPKG

@nextcloud/auth

Version:

Nextcloud helpers related to authentication and the current user

15 lines (14 loc) 426 B
import { NextcloudUser } from './user'; /** * 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;