简体   繁体   中英

@nuxt/auth can I send refresh token using params?

I have a problem with @nuxt/auth module . I already use the refresh scheme , in the refresh method, the module sends the refresh token in a Payload Request but I want to send it in the params.

What should I do?

The auth plugin is not very flexible and looking at this, I'm not sure that this is quite customizable: https://auth.nuxtjs.org/schemes/refresh#refreshtoken

If you can edit your backend to accomodate to how this module work, it will maybe be easier.

On the other side, there is refreshController but I don't really know how this one works nor if it can help you. This github issue may help I hope: https://github.com/nuxt-community/auth-module/issues/924

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM