nuxt-auth
nuxt-auth copied to clipboard
enh(#895): Custom refresh response token pointer
๐ Linked issue
#895
โ Type of change
- [ ] ๐ Documentation (updates to the documentation, readme or JSdoc annotations)
- [ ] ๐ Bug fix (a non-breaking change that fixes an issue)
- [x] ๐ 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
Added refreshResponseTokenPointer option to allow the token assignment (during the refresh call) to a different property respect to the signIn call.
This is useful in cases where the server returns the token in a property with different names between login and refresh.
๐ Checklist
- [x] I have linked an issue or discussion.
- [ ] I have added tests (if possible).
- [x] I have updated the documentation accordingly.
@zoey-kaiser Could you please re-review this?