All files / services/core microsoft-auth-service.interface.ts

0% Statements 0/0
0% Branches 0/0
0% Functions 0/0
0% Lines 0/0

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15                             
import * as vscode from 'vscode';
 
/**
 * Interface for the MicrosoftAuthService.
 */
export interface IMicrosoftAuthService {
	/**
	 * Checks if there's an existing session without prompting the user.
	 * @param scopes The OAuth scopes to check.
	 * @param createIfNone If true, creates a new session if none exists.
	 * @returns A promise that resolves to the authentication session if a session exists, or undefined.
	 */
	getSession(scopes: string[], createIfNone?: boolean): Promise<vscode.AuthenticationSession | undefined>;
}