Next.js 如何将数据从一个页面的getServerSideProps传递到另一个页面,而不使用express、cookie或发送查询?

Next.js 如何将数据从一个页面的getServerSideProps传递到另一个页面,而不使用express、cookie或发送查询?,next.js,getserversideprops,Next.js,Getserversideprops,在next.js中,我试图将一个值(UUID)从/authorize页面传递到/home页面,如果不将其存储在cookie中或在查询URL中传递值,或使用express,如何实现这一点 /authorize/index.js export async function getServerSideProps({ req, res, query }) { let id = uuidv4(); return {props: id} } export async functio

在next.js中,我试图将一个值(UUID)从
/authorize
页面传递到
/home
页面,如果不将其存储在cookie中或在查询URL中传递值,或使用express,如何实现这一点

/authorize/index.js

export async function getServerSideProps({ req, res, query }) {

   let id = uuidv4();
   
   return {props: id}

}
export async function getServerSideProps({ req, res, query }) {

   // Want to use the id generated in the authorize call   

}
/home/index.js

export async function getServerSideProps({ req, res, query }) {

   let id = uuidv4();
   
   return {props: id}

}
export async function getServerSideProps({ req, res, query }) {

   // Want to use the id generated in the authorize call   

}

如果你已经找到了这个问题的答案,那么请发布它。就连我都被这个问题缠住了。