aboutsummaryrefslogtreecommitdiffstats
path: root/__mocks__/@nextcloud/auth.ts
blob: 8d341dadad711c175809a883d945a5b3c075d783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/**
 * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
 * SPDX-License-Identifier: AGPL-3.0-or-later
 */
export const getCurrentUser = function() {
	return {
		uid: 'test',
		displayName: 'Test',
		isAdmin: false,
	}
}

export const getRequestToken = function() {
	return 'test-token-1234'
}

export const onRequestTokenUpdate = function() {}