Closed xmlking closed 6 years ago
Thanks! Your example really helped me out. I kept assuming the silent refresh was OK for Password Flow.
Hoping @manfredsteyer can make it part of the lib
Hi @xmlking ,
I'm also trying to implement the auto token refresh and I'm using password flow. May I know where should I put this function and where should I call it so that the token that gets automatically attached to all my request is valid?
Hope to hear from you.
Many thanks, Toni
see also #285
@m-a-l-p may be this is what your are looking for https://github.com/xmlking/nx-starter-kit/blob/master/libs/auth/src/auth.service.ts#L92
Why is this closed? Was this implemented?
similar to
setupAutomaticSilentRefresh
for Implicit flow, we needsetupAutomaticTokenRefresh
for Password Flow. it would be better if we can provide genericAutomaticTokenRefresh
setup method for both.It will help subscribing to
oauthService.events
at one place within the lib, and avoid potential leaking references and memory issues.currently we have to implement: