dt-app
Version:
The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.
22 lines (21 loc) • 819 B
TypeScript
import type { AutomationTokenInformation, SSOTokenInformation } from '../interfaces';
import type { OAuthScope } from '../utils/config/cli-options';
/**
* Check if provided token information is correct
*/
export declare function checkIfTokenIsCorrect(
/** The token from the file system */
token: SSOTokenInformation | AutomationTokenInformation, // TODO: This needs to be adapted for both cases automation and SSO
/** The current environment URL */
environmentUrl: string,
/** The current OAuth URL */
oauthUrl: string,
/** The current client id */
oauthClientId: string,
/** OAuthScopes that should be requested */
oAuthScopes: OAuthScope[] | undefined): boolean;
/**
* @param token
* @returns true if token is valid, false if token is expired
*/
export declare function isTokenValid(token: string): boolean;