Origins returned an error when no JWT subject was present
The non-nullable list propagated null up to the root, killing the whole FindEvents query and rendering an empty event list
Mirror the Events resolver behavior and return [] instead, so partial-auth requests still render events
Why
On cold start (especially mobile), the Auth0 SDK can be in a stale state where isAuthenticated is true but getAccessTokenSilently() returns no usable token. Apollo then sent an unauthenticated FindEvents query that included the Origins field, which errored and nulled out the entire response. Users had to log out and back in to see events.
Test plan
go test ./graph/...
Verify on phone: cold open with stale auth still shows events
## Summary
- `Origins` returned an error when no JWT subject was present
- The non-nullable list propagated null up to the root, killing the whole `FindEvents` query and rendering an empty event list
- Mirror the `Events` resolver behavior and return `[]` instead, so partial-auth requests still render events
## Why
On cold start (especially mobile), the Auth0 SDK can be in a stale state where `isAuthenticated` is true but `getAccessTokenSilently()` returns no usable token. Apollo then sent an unauthenticated `FindEvents` query that included the `Origins` field, which errored and nulled out the entire response. Users had to log out and back in to see events.
## Test plan
- [x] `go test ./graph/...`
- [ ] Verify on phone: cold open with stale auth still shows events
Origins returned an error when no JWT subject was present, which
propagated null through the non-nullable list and killed the whole
FindEvents query. Mirror Events behavior and return an empty list
instead so partial-auth requests still render events.
argoyle
scheduled this pull request to auto merge when all checks succeed 2026-05-05 17:31:31 +00:00
argoyle
merged commit 69df9d9d41 into master2026-05-05 17:50:21 +00:00
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Originsreturned an error when no JWT subject was presentFindEventsquery and rendering an empty event listEventsresolver behavior and return[]instead, so partial-auth requests still render eventsWhy
On cold start (especially mobile), the Auth0 SDK can be in a stale state where
isAuthenticatedis true butgetAccessTokenSilently()returns no usable token. Apollo then sent an unauthenticatedFindEventsquery that included theOriginsfield, which errored and nulled out the entire response. Users had to log out and back in to see events.Test plan
go test ./graph/...