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.31k stars 164 forks source link

enh(#765): refactor `refreshHandler` and session refreshing; fix refresh provider refreshing #766

Closed phoenix-ru closed 4 months ago

phoenix-ru commented 5 months ago

๐Ÿ”— Linked issue

765

โ“ Type of change

๐Ÿ“š Description

In #715 we introduced custom refresh handlers. Here I improve on it, introduce refresh function to CommonUseAuthReturn and properly use it for refresh handler.

๐Ÿ“ Checklist