UNPKG

lambda-live-debugger

Version:

Debug Lambda functions locally like it is running in the cloud

12 lines (11 loc) 555 B
import { getSsoOidcClient } from "./getSsoOidcClient"; export const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => { const { CreateTokenCommand } = await import("@aws-sdk/nested-clients/sso-oidc"); const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig); return ssoOidcClient.send(new CreateTokenCommand({ clientId: ssoToken.clientId, clientSecret: ssoToken.clientSecret, refreshToken: ssoToken.refreshToken, grantType: "refresh_token", })); };