Hierarchy

Constructors

Methods

  • Parameters

    • token: string

    Returns Promise<string>

    Description

    Permanently removes a service authorization token.

    See

    https://help.tago.io/portal/en/kb/articles/218-authorization Authorization

    Example

    If receive an error "Authorization Denied", check policy Service Authorization / Delete in Access Management.

    const result = await Resources.serviceAuthorization.tokenDelete("token-xyz-123");
    console.log(result); // Token Successfully Removed
  • Parameters

    • token: string
    • Optional verificationCode: string

    Returns Promise<string>

    Description

    Updates a service authorization token with an optional verification code.

    See

    https://help.tago.io/portal/en/kb/articles/218-authorization Authorization

    Example

    If receive an error "Authorization Denied", check policy Service Authorization / Edit in Access Management.

    const result = await Resources.serviceAuthorization.tokenEdit("token-xyz-123", "verification-code");
    console.log(result); // Authorization Code Successfully Updated