src/vs/platform/userDataSync/common/userDataSync.ts/isAuthenticationProvider
export function isAuthenticationProvider(thing: any): thing is IAuthenticationProvider {
	return thing
		&& isObject(thing)
		&& isString(thing.id)
		&& Array.isArray(thing.scopes);
}