nuxt-auth icon indicating copy to clipboard operation
nuxt-auth copied to clipboard

enh(#895): Custom refresh response token pointer

Open Rizzato95 opened this issue 1 year ago โ€ข 1 comments

๐Ÿ”— 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.

Rizzato95 avatar Sep 14 '24 12:09 Rizzato95

Open in Stackblitz

pnpm add https://pkg.pr.new/@sidebase/nuxt-auth@910

commit: a40f28e

pkg-pr-new[bot] avatar Sep 18 '24 17:09 pkg-pr-new[bot]

@zoey-kaiser Could you please re-review this?

phoenix-ru avatar Nov 21 '24 08:11 phoenix-ru