简体   繁体   English

Nuxt-身份验证模块:服务器端经过身份验证的请求

[英]Nuxt - Auth module: Authenticated requests on server side

A particular page needs to load some user specific data in the fetch() hook. 特定页面需要在fetch()挂钩中加载一些用户特定的数据。

How do I access the auth token on the server side to send with this request? 如何访问服务器端的身份验证令牌以发送此请求?

The auth module automatically exposes the token to the axios module, I did not check beforehand. auth模块自动将令牌公开给axios模块,我没有事先检查过。 Everything is working now. 现在一切正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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