Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a package or support for the AnalogJS Meta Framework #612

Open
5 tasks done
SemmelJochen opened this issue Jun 8, 2024 · 5 comments
Open
5 tasks done

Add a package or support for the AnalogJS Meta Framework #612

SemmelJochen opened this issue Jun 8, 2024 · 5 comments
Labels
feature request A feature has been asked for or suggested by the community

Comments

@SemmelJochen
Copy link

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Describe the problem you'd like to have solved

I am trying to setup a new application using AnalogJs. I just tried adding the auth0/angular package and setup as advised in the auth0 docs, but the Login does not work properly.
When calling loginWithRedirect() I am able to log in in the Logs I can see a Login Event but no more. In my Application I am not able to use the isAuthenticated and user$ because they are always "false" and "null".
Screenshot 2024-06-08 at 20 15 50

In my network tab I can see the following session being set:
Screenshot 2024-06-08 at 20 18 50

I also tried the SPA and Regular Web App setup.

Describe the ideal solution

I want to be able to use the auth0 package within my AnalogJs setup

Alternatives and current workarounds

No response

Additional context

No response

@SemmelJochen SemmelJochen added the feature request A feature has been asked for or suggested by the community label Jun 8, 2024
@frederikprijck
Copy link
Member

Can you share minimal reproduction so we can look into what's going on?

@SemmelJochen
Copy link
Author

@frederikprijck u can use my test for this.
https://github.com/SemmelJochen/nx-coffeelogger-test

@frederikprijck
Copy link
Member

@SemmelJochen can you please explain where to find the relevant code and how to reproduce? Thanks.

@SemmelJochen
Copy link
Author

@frederikprijck sorry, about that.
To reproduce. Checkout the repo, npm i (or bun), run "nx serve coffeelogger". Then you login with your Github Account (app must run on localhost:4200 but its default anyway). Then you will be forwarded to the app again and you can see in the logs, that no user will be available.
Relevant code:

Tell me if im missing something :)

@frederikprijck
Copy link
Member

Can you confirm that after logging in, the URL still contains code and state query parameters?

If so, can you try and inject AuthService in AppComponent (no need to use it, just inject it) and see if it behaves different?

Additionally, our SDK is build on top of the Angular Router, see https://github.com/auth0/auth0-angular/blob/main/projects/auth0-angular/src/lib/abstract-navigator.ts. So it may be needed to provide your own AbstractNavigator as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request A feature has been asked for or suggested by the community
Projects
None yet
Development

No branches or pull requests

2 participants