relayjs: authentication using relay, which mutation to use?

前端 未结 3 665
感动是毒
感动是毒 2021-02-13 13:10

I am currently handling authentication outside of relay with custom header set in DefaultNetworkLayer. Is it preferred way and Is there a way to do it in relay? I was stuck when

3条回答
  •  盖世英雄少女心
    2021-02-13 13:54

    There exists an undocumented config type, which looks right for that use case: https://github.com/facebook/relay/issues/237

提交回复
热议问题