Hướng dẫn lấy REFRESH_TOKEN REFRESH TOKEN (ok)

{
"data": {
"login": {
"refreshToken": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL3dwY2xpZGVtby5kZXYiLCJpYXQiOjE3Mzk5OTU4MjgsIm5iZiI6MTczOTk5NTgyOCwiZXhwIjoxNzcxNTMxODI4LCJkYXRhIjp7InVzZXIiOnsiaWQiOiIxIiwidXNlcl9zZWNyZXQiOiJncmFwaHFsX2p3dF82N2I0ZTM1ZDhiODQyIn19fQ.FwrXtFD2flxFNEwDveyhByXJc7s5nL875QAz55P3TbM"
}
},
"extensions": {
"debug": [],
"queryAnalyzer": {
"keys": "0b4cac0b0ab05df9c0bc564b4c73733ee92ad77c55bccb533114bc0a3295f90d graphql:Mutation operation:Login",
"keysLength": 97,
"keysCount": 3,
"skippedKeys": "",
"skippedKeysSize": 0,
"skippedKeysCount": 0,
"skippedTypes": []
}
}
}Next.js + WordPress
It's headless WordPress! 💀 - https://nextjswp.com This is a bare-bones Next.js app, which fetches data from WordPress via WPGraphQL and styles it with TailwindCSS. Please consider it a starting point for your next headless WordPress project.
Supported Features
Setup
1. Clone the repo
2. Install dependencies
3. Create a .env.local file
.env.local file4. Configure next.config.js
next.config.js5. Configure /lib/config.ts
/lib/config.ts6. Configure WordPress
7. Optional. Authentication for Previews
8. Start the dev server
Once the dev server has started, you can view the front-end: http://localhost:3000
Querying WordPress data with GraphQL
Going To Production
Other
Contributing
This is a hobby project and my time is limited, so your contributions are welcome! Please see the contributing guidelines to get started.
PreviousSử dụng Advanced Custom Fields trong GraphqlNextTìm hiểu SEO feed.xml, sitemap.ts, robots.ts nextjs-wordpress
Last updated
