Skip to content

Commit c1c90c1

Browse files
committed
added an admonition, made it clearer that @jwtClaim is used alongside @jwt
1 parent 381f006 commit c1c90c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/ROOT/pages/security/configuration.adoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ type JWT @jwt {
140140
}
141141
----
142142

143+
[NOTE]
143144
Note that the type name `JWT` is not required.
144145
You can use any name as long as it is decorated with the `@jwt` directive.
145146

@@ -157,7 +158,7 @@ A `roles` claim is not necessarily located at the JWT payload root, but can inst
157158
}
158159
----
159160

160-
In this case, use the `@jwtClaim` directive:
161+
In this case, use the `@jwtClaim` directive alongside the `@jwt` directive:
161162

162163
[source, graphql, indent=0]
163164
----

0 commit comments

Comments
 (0)