Hi!
Yes you should be able to access the JWT, see authHeader in webhooks.
This authHeader is sent as part of the request body.
{
Source: ...,
Namespace: ..,
Resolver: ...
AccessJWT: ...,
AuthHeader: {
Key: string, <-- Header specified Dgraph.Authorization
Value: string <-- JWT
},
Event: ...,
}
Let me know if that works.
The @default directive probably does not support your use case. It’s very new and the only variable I know about is $now, which sets datetime to the current datetime.