• generate nonce token

    Parameters

    • token: Partial<{
          props: InitProps;
      }>

      init props

    • fallback: NonceInfo = null

      nonce fallback

    • tag: string = ""

      nonce token tag or nonce generator tag

    Returns {
        attr: string;
        nonce?: NonceInfo;
    }

    an object with generated string token and nonce info