Skip to content

Commit cec90dd

Browse files
author
Steve Riesenberg
committed
Polish ref-doc
Issue gh-1156
1 parent 13a6103 commit cec90dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/src/docs/asciidoc/examples/src/main/java/sample/jpa/service/authorization/JpaOAuth2AuthorizationService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ private OAuth2Authorization toObject(Authorization entity) {
173173
builder.token(userCode, metadata -> metadata.putAll(parseMap(entity.getUserCodeMetadata())));
174174
}
175175

176-
if (entity.getUserCodeValue() != null) {
176+
if (entity.getDeviceCodeValue() != null) {
177177
OAuth2DeviceCode deviceCode = new OAuth2DeviceCode(
178178
entity.getDeviceCodeValue(),
179179
entity.getDeviceCodeIssuedAt(),

docs/src/docs/asciidoc/guides/how-to-jpa.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ include::code:ClientRepository[]
185185
[[authorization-repository]]
186186
=== Authorization Repository
187187

188-
The following listing shows the `AuthorizationRepository`, which is able to find an <<authorization-entity,`Authorization`>> by the `id` field as well as the `state`, `authorizationCodeValue`, `accessTokenValue` and `refreshTokenValue` token fields.
188+
The following listing shows the `AuthorizationRepository`, which is able to find an <<authorization-entity,`Authorization`>> by the `id` field as well as the `state`, `authorizationCodeValue`, `accessTokenValue`, `refreshTokenValue`, `userCodeValue` and `deviceCodeValue` token fields.
189189
It also allows querying a combination of token fields.
190190

191191
[[sample.jpa.repository.authorization]]

0 commit comments

Comments
 (0)