diff --git a/edgraph/graphql.go b/edgraph/graphql.go index 832b3cd7332..391e013932e 100644 --- a/edgraph/graphql.go +++ b/edgraph/graphql.go @@ -54,7 +54,7 @@ func ProcessPersistedQuery(ctx context.Context, gqlReq *schema.Request) error { if err != nil { return err } - if _, err := validateToken(accessJwt[0]); err != nil { + if _, err := validateToken(accessJwt); err != nil { return err } }