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

addDefaultCallback can be set with refresh and local providers #710

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

nojiritakeshi
Copy link

πŸ”— Linked issue

#622
#656

❓ Type of change

  • πŸ“– Documentation (updates to the documentation, readme or JSdoc annotations)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

addDefaultCallback can now be set by refresh and local provider.
I have confirmed that it works in playground.

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have added tests (if possible).
  • I have updated the documentation accordingly.

@zoey-kaiser zoey-kaiser added enhancement An improvement that needs to be added provider-local An issue with the local provider provider-refresh An issue with the refresh provider labels May 9, 2024
@zoey-kaiser
Copy link
Member

Hi @nojiritakeshi πŸ‘‹

Thank you for your contribution, and I apologize for the delay! As this change is very straight forward and reuses logic from the AuthJS provider, I think we can quickly push this through and release it in 0.8.0!

Could you please fix the merge conflicts and then we can do a review and hopefully merge without any issues 😊

@nojiritakeshi
Copy link
Author

Hi @zoey-kaiser !
Thanks for the review.
Conflicts have been resolved, please check again.

Copy link
Member

@zoey-kaiser zoey-kaiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @nojiritakeshi πŸ‘‹
Sorry for the delay in the review, I have been pretty swamped lately πŸ˜“

Thanks for the awsome PR! Could you please look into making this new option configurable via the nuxt config, like with the authjs provider?

There we allow you to set addDefaultCallbackUrl to a boolean to enable / disable automatic callback URL detection or hard code it to a string, which is then always the callback URL?

I think this would allow for more flexibility and would also match the other providers! Thank you so much 😊

@nojiritakeshi
Copy link
Author

Hi @zoey-kaiser πŸ˜„

Indeed. I agree with that opinion.
I may take some time since I've been busy lately, but I'll try to find the time to fix it.

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 provider-local An issue with the local provider provider-refresh An issue with the refresh provider
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants