Getting 401 (Unauthorized) error when embedding app in React

I am trying out Retool so I am under the free plan.

When I run this React code it shows the Retool login page and on entering the credentials it gives 401 (Unauthorized) error.

I am not using public url and have created the url from share -> viewer-> "copy embed url".

Why is it not working?

import React from 'react';
import Retool from "react-retool";

const sampleData = { name: 'Sample data' }
const url = 'your_app_url'

const App = () => {
  return 
  <>
    <Retool 
      url={url}
      data={sampleData}
      onData={(data) => mockFunction(data)}
    />
  <>
}

Hey @sss888, welcome to the forums!

Its my understanding that you need to be on Business or Enterprise to use embedded apps. This is probably why it is not working for you!

Hi @sss888 - welcome to the community! :wave:

As @jamesg31 noted, embedding apps is a feature that is only available at the Business or Enterprise level. This is why you are seeing a 401 (Unauthorized) error. Are you able to DM me the email associated with your org? Your org URL would also work. I can look into getting you access on a temporary trial basis.