You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optionally, if a custom decoding mechanism is required, that same header can be decoded and the resulting JWT payload put into the `jwt` field of the context.
38
38
39
-
// ^ Can we show the above in a code listing?
39
+
Alternatively, you can decode a token via a xref:#_jwks_endpoint[].
40
40
41
41
==== Symmetric secret
42
42
@@ -74,8 +74,6 @@ new Neo4jGraphQL({
74
74
75
75
==== Passing in encoded JWTs
76
76
77
-
// What about decoded JWTs?
78
-
79
77
To pass in an encoded JWT, use the token field of the context.
80
78
When using Apollo Server, extract the authorization header into the token property of the context:
81
79
@@ -119,9 +117,27 @@ interface JwtPayload {
119
117
[WARNING]
120
118
Do not pass in the header or the signature.
121
119
120
+
122
121
=== Decoded JWTs
123
122
124
-
// What could be added here?
123
+
A decoded JWT is passed to the context in a similar way that an encoded JWT is.
124
+
However, instead of using a token, it uses the `jwt` field:
0 commit comments