Skip to content

Context

The Context object provides information about the current user and the project they are working on.

interface CrowdinContextInfo {
jwtPayload: JwtPayload;
crowdinId: string;
clientId: string;
appIdentifier: string;
}
interface JwtPayload {
aud: string;
sub: string;
domain?: string;
context: JwtPayloadContext;
iat: number;
exp: number;
}
interface JwtPayloadContext {
project_id: number;
project_identifier?: string;
organization_id: number;
organization_domain?: string;
user_id: number;
user_login?: string;
}