nuxt-auth
nuxt-auth copied to clipboard
addDefaultCallback can be set with refresh and local providers
๐ Linked issue
https://github.com/sidebase/nuxt-auth/issues/622 https://github.com/sidebase/nuxt-auth/issues/656
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [x] ๐ Bug fix (a non-breaking change that fixes an issue)
- [ ] ๐ Enhancement (improving an existing functionality like performance)
- [x] โจ 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
- [x] I have linked an issue or discussion.
- [ ] I have added tests (if possible).
- [ ] I have updated the documentation accordingly.
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 ๐
Hi @zoey-kaiser ! Thanks for the review. Conflicts have been resolved, please check again.
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.
Hi @zoey-kaiser . This modification is made so that the string set in the addDefaultCallback property in nuxt.config is applied to the callbackUrl.
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?
Therefore, I do not see the need to make a new correction to this point, do you?
Please let me know if I am misguided!
This modification is made so that the string set in the addDefaultCallback property in nuxt.config is applied to the callbackUrl.
You are right! I revised this PR and agree! Sorry about the confusion! Thank you for your contribution! I will release this PR in 0.8.0-rc.1 now! ๐ฅณ