feat: Add scopes to /login endpoint (no-changelog) (#7718)

Github issue / Community forum post (link here to close automatically):
This commit is contained in:
Val
2023-11-16 11:11:55 +00:00
committed by GitHub
parent ebee1a5908
commit d39bb2540f
9 changed files with 158 additions and 15 deletions

View File

@@ -47,6 +47,7 @@ import type { WorkflowRepository } from '@db/repositories/workflow.repository';
import type { LICENSE_FEATURES, LICENSE_QUOTAS } from './constants';
import type { WorkflowWithSharingsAndCredentials } from './workflows/workflows.types';
import type { WorkerJobStatusSummary } from './services/orchestration/worker/types';
import type { Scope } from '@n8n/permissions';
export interface ICredentialsTypeData {
[key: string]: CredentialLoadingDetails;
@@ -772,6 +773,7 @@ export interface PublicUser {
isPending: boolean;
hasRecoveryCodesLeft: boolean;
globalRole?: Role;
globalScopes?: Scope[];
signInType: AuthProviderType;
disabled: boolean;
settings?: IUserSettings | null;