Renew Token Set
    • PDF

    Renew Token Set

    • PDF

    Article summary

    PUT /kms/v1/keys/{keyTag}/token-set

    Recreate a token set (refresh token and access token).

    Caution
    • Recreating a token set does not automatically discard existing token sets.
    • The token will have all the key permissions of the user who requested the token to be generated.
    • Token generators do not manage the tokens they generate, so they can't be destroyed individually. Therefore, it is crucial to take extra precautions to prevent token leakage.

    Request

    Request parameters

    Parameter NameTypeAdditional Information
    x-ncp-ocapi-tokenHeader(Required)Refresh Token
    keyTagPath(Required)
    accessTokenHoursBody: String1 - 17520 (Default = 72). TTL will be 'infinite' if the string "UL" is entered
    refreshTokenHoursBody: String1 - 17520 (Default = 2160). TTL will be 'infinite' if the string "UL" is entered

    Request body example

    {
      "accessTokenHours": "string",
      "refreshTokenHours": "string"
    }
    

    Response

    Response body

    {
      "code": "string",
      "data": {
        "refreshToken": "string",
        "accessToken": "string"
      }
    }
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.