sidebase / nuxt-auth

Authentication built for Nuxt 3! Easily add authentication via OAuth providers, credentials or Email Magic URLs!
https://auth.sidebase.io
MIT License
1.25k stars 162 forks source link

enh(#895): Custom refresh response token pointer #910

Open Rizzato95 opened 1 week ago

Rizzato95 commented 1 week ago

๐Ÿ”— Linked issue

895

โ“ Type of 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

pkg-pr-new[bot] commented 1 week ago

Open in Stackblitz

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

commit: c90dba8