'multiple guard subscription
- Laravel6
- lighthouse-php 5
- pusher
I'm creating admin and user chat app and use graphql subscription. User authentication and admin authentication are used different guard.
I want to use different guard in subscription, is it possible? Or I have to change my authentication system using @can directive?
ex.
- subscription's guard guard_user(a)
- mutation's guard guard_admin(b)
User chat(a) wants to get admin push the message(b). But (b)'s subscription after mutation try to throw the unauthenticated exception message and it's over the limit pusher, then User chat doesn't accept any message.
[13:55:41] LOG.error: The data content of this event exceeds the allowed maximum (10240 bytes). See ...
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
