menu

Apollo

A community of developers, designers and others who love Apollo and GraphQL. 🚀

Channels
# All channels
view-forward
# General
view-forward
# Apollo Angular
view-forward
# Announcements
view-forward
# Apollo Android
view-forward
# Apollo Client
view-forward
# Apollo iOS
view-forward
# Apollo Link
view-forward
# Apollo Link Rest
view-forward
# Local State
view-forward
# Apollo Platform
view-forward
# Apollo Server
view-forward
# Apollo Tooling
view-forward
# Contributing
view-forward
# Docs
view-forward
# Events
view-forward
# GraphQL Tools
view-forward
# Jobs
view-forward
# Random
view-forward
# React Apollo
view-forward
# Showcase
view-forward
# Subscriptions
view-forward
# Testing
view-forward
# Vue Apollo
view-forward
Team

[ANYONE FROM APOLLO PLEASE ANSWER IT!]: Do some action on gateway's side after…

March 20, 2020 at 7:32pm

[ANYONE FROM APOLLO PLEASE ANSWER IT!]: Do some action on gateway's side after mutation

March 20, 2020 at 7:32pm (Edited 2 months ago)
Hello. I wanna implement simple auth after mutation: I generate a token after mutation and then save it to cookies or anywhere else on the client -> the gateway side. Also, I have a couple of refetches on this mutation that doesn't work (they don't see updated cookies because they run before set cookies). I that the right way I'm trying to use? Maybe you guys have a complete example of authentication using new Apollo federation feature? Thanks

March 24, 2020 at 2:11am
I would love to see a complete example of Auth on gateway/federation. I currently get the token in my mutation but cant put it into gateway to then propagate down on willSendRequest to other services. Can someone put up a full example? Please!
  • reply
  • like

March 27, 2020 at 6:51am
Yeah. The same problem for me! Even if I set cookies on the client and then send cookies to the gateway context and to the resources... all "refetch queries" after login mutation never get authenticated response because refetches happens before I set cookies
Edited
  • reply
  • like
Also I want set token on server side (with passport js) instead of client side
  • reply
  • like