Skip to content

GetAccessToken

Source: src/AWS/LicenseManager/GetAccessToken.ts

Runtime binding for license-manager:GetAccessToken — exchange a long-lived refresh token (minted by CreateToken) for a temporary access token to use with AssumeRoleWithWebIdentity. Both the refresh token and the returned access token are Redacted end-to-end.

Provide the implementation with Effect.provide(AWS.LicenseManager.GetAccessTokenHttp).

// init
const getAccessToken = yield* AWS.LicenseManager.GetAccessToken();
// runtime — AccessToken is Redacted; unwrap only at the point of use
const { AccessToken } = yield* getAccessToken({ Token: refreshToken });