# Callback URL error for web extension authentication

**URL:** <https://community.auth0.com/t/callback-url-error-for-web-extension-authentication/103434>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [March 27, 2023, 5:46pm UTC](https://community.auth0.com/t/callback-url-error-for-web-extension-authentication/103434 "2023-03-27T17:46:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![forwardapp](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@forwardapp](https://community.auth0.com/u/forwardapp)\
**Post date:** [March 27, 2023, 5:46pm UTC](https://community.auth0.com/t/callback-url-error-for-web-extension-authentication/103434/1 "2023-03-27T17:46:28Z")

</div>

I’m trying to use Auto0 with my web extension.  
I don’t know which URL to provide as a callback URL.  
Need help please!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 27, 2023, 6:01pm UTC](https://community.auth0.com/t/callback-url-error-for-web-extension-authentication/103434/3 "2023-03-27T18:01:51Z")

</div>

Hey there @forwardapp welcome to the community!

Where you redirect users is up to you, but some more info on callback urls can be found [here](https://auth0.com/docs/authenticate/login/redirect-users-after-login#redirect-users-to-callback-urls-on-the-allowlist). If you’d like to see this in action, I recommend taking a look at any of our [quickstarts](https://auth0.com/docs/quickstarts) - For example, our React quickstart:

> **[Auth0 React SDK Quickstarts: Login](https://auth0.com/docs/quickstart/spa/react/01-login#configure-callback-urls)**
>
> Auth0 allows you to add authentication to your React application quickly and to gain access to user profile information. This guide demonstrates how to integrate Auth0 with any new or existing React application using the Auth0 React SDK.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![forwardapp](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@forwardapp](https://community.auth0.com/u/forwardapp)\
**Post date:** [March 27, 2023, 6:25pm UTC](https://community.auth0.com/t/callback-url-error-for-web-extension-authentication/103434/4 "2023-03-27T18:25:31Z")

</div>

Hi @ty.frith !  
Thanks for the quick reply. The problem I’m facing is specific to Chrome Extensions, as they do not have a standard URL. So I’m not sure what do I put. Our URLs start with chrome-extension rather than http:// protocol.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [March 27, 2023, 7:16pm UTC](https://community.auth0.com/t/callback-url-error-for-web-extension-authentication/103434/5 "2023-03-27T19:16:21Z")

</div>

Gotcha, thanks for clarifying! Unfortunately I have not had the chance to dive into this myself, but perhaps [this repository](https://github.com/darkyen/auth0-chrome-extension-poc/blob/drop-in/package.json) will help. It is a bit outdated and uses [Lock](https://auth0.com/docs/libraries/lock) as opposed to Universal Login.

The example uses the `auth0-chrome` library:

> **[auth0-chrome](https://www.npmjs.com/package/auth0-chrome)**
>
> Package for using Auth0 in a Chrome Extension. Latest version: 0.1.2, last published: 6 years ago. Start using auth0-chrome in your project by running \`npm i auth0-chrome\`. There is 1 other project in the npm registry using auth0-chrome.

Hope this helps at least point you in the right direction!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [April 10, 2023, 7:16pm UTC](https://community.auth0.com/t/callback-url-error-for-web-extension-authentication/103434/6 "2023-04-10T19:16:55Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
