UNPKG

recoder-code

Version:

Complete AI-powered development platform with ML model training, plugin registry, real-time collaboration, monitoring, infrastructure automation, and enterprise deployment capabilities

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