auth0 / auth0-spa-js

Auth0 authentication for Single Page Applications (SPA) with PKCE

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

React Quickstart causing error upon clicking the login button

charlesanthonyalfonso opened this issue · comments

Checklist

Description

I followed the React Quickstart instruction.
Upon reaching in Add Login to Your Application section, I can see the button.
however when i click the login button it does not do anything.
and i see a console error

image

Reproduction

  1. follow react quickstart instruction
  2. when you already added a login button, try to click that button and the error message appears

Additional context

No response

auth0-spa-js version

2.2.4

Which framework are you using (React, Angular, Vue...)?

Vite with React

Framework version

Vite@5.0.8 and React@18.2.0

Which browsers have you tested in?

Chrome

Can you show your Auth0Provider (if using Auth0-React) or Auth0Client (if using Auth0-SPA-JS), including the values passed to it?

From the error, it looks like the domain isnt set correctly.

Hi @frederikprijck

This can be closed now, it was my fault i had provided a wrong domain and clientId in the Auth0Provider.
Thank you.