Variable APP_GRANT_SCHEMAConst
APP_GRANT_SCHEMA: {
response: {
"200": TObject<
{
accessToken: TString;
refreshToken: TString;
expiresIn: TNumber;
tokenType: TLiteral<"Bearer">;
sessionId: TString;
},
>;
"400": TObject<{ error: TString }>;
"500": TObject<{ error: TString }>;
"503": TObject<{ error: TString }>;
};
} = ...
Type Declaration
-
response: {
"200": TObject<
{
accessToken: TString;
refreshToken: TString;
expiresIn: TNumber;
tokenType: TLiteral<"Bearer">;
sessionId: TString;
},
>;
"400": TObject<{ error: TString }>;
"500": TObject<{ error: TString }>;
"503": TObject<{ error: TString }>;
}
POST /auth/app/token and /auth/app/refresh.
Response only. These routes answer 503 when app sign-in is switched off, and that answer is decided before the body is read; schema validation runs earlier still, so declaring a request body here would turn a disabled-importer reply from 503 into 400.