User Login in Browser Extension (to retrieve data in Bubble site))

Hello! I am working on a bubble app that is connected to a browser extension. The user first registers an account with the bubble site. Then they download extension. Our goal is to allow the user to sign in through the extension and have access to the data from the corresponding account in the bubble site.

From my current understanding, this is done through the use of the Workflow and Data API. The Workflow API receives external information such as username and password and can use these inputs to sign the user in. The Data API is used to access any custom data type and its corresponding fields for the user currently signed in.

Is this the right approach?

Are there any bubble templates or API examples that you recommend looking at? Any help would be greatly appreciated.

Thanks !