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

Throw exception inside getSession to outsite treatments #933

Open
2 of 5 tasks
Mucaccino opened this issue Oct 22, 2024 · 0 comments
Open
2 of 5 tasks

Throw exception inside getSession to outsite treatments #933

Mucaccino opened this issue Oct 22, 2024 · 0 comments
Labels
enhancement An improvement that needs to be added pending An issue waiting for triage

Comments

@Mucaccino
Copy link

Mucaccino commented Oct 22, 2024

Describe the feature

I need to perform external error handling when calling getSession from a signIn call.

It turns out that in my project signIn works, returning the access token, but when calling nextTick(getSession) and the api responds with an error when recovering the session, the error just comes out in the console, and I can't perform the treatment.

How would you implement this?

The suggestion is within the try, which has console.error, to also trigger an error to be handled externally.

Additional information

  • Would you be willing to help implement this feature?

Provider

  • AuthJS
  • Local
  • Refresh
  • New Provider

Reference line

@Mucaccino Mucaccino added enhancement An improvement that needs to be added pending An issue waiting for triage labels Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement that needs to be added pending An issue waiting for triage
Projects
None yet
Development

No branches or pull requests

1 participant