UNPKG

@aws-sdk/client-cognito-identity-provider

Version:

AWS SDK for JavaScript Cognito Identity Provider Client for Node.js, Browser and React Native

13 lines (12 loc) • 433 B
const { Sha256 } = require("@aws-crypto/sha256-js"); const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser"); const getRuntimeConfig = (config) => { const browserDefaults = getBrowserRuntimeConfig(config); return { ...browserDefaults, ...config, runtime: "react-native", sha256: config?.sha256 ?? Sha256, }; }; exports.getRuntimeConfig = getRuntimeConfig;