Authentication and Access Control with Relay

前端 未结 3 1304
被撕碎了的回忆
被撕碎了的回忆 2021-02-01 07:40

The official line from Facebook is that Relay is \"intentionally agnostic about authentication mechanisms.\" In all the examples in the Relay repository, authentication and acce

3条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-01 08:28

    If anyone has problems with this topic: I made an example repo for Relay/GraphQL/express authentication based on dimadima's answer. It saves session data (userId and role) in a cookie using express middleware and a GraphQL Mutation

提交回复
热议问题