Skip to content

Commit 52988cd

Browse files
authored
Update README.md
1 parent 4dda4fb commit 52988cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,11 @@ return new JwtBuilder()
162162
.WithJwtClaims()
163163
.WithUserClaims()
164164
.WithUserRoles()
165-
.BuildUserResponse();
165+
.BuildUserResponse() as UserResponse;
166166
```
167167

168+
>**Note:** The safe cast to `UserResponse` is needed because is a subtype of `UserResponse<TKey>`.
169+
168170
## Examples
169171
Use the [sample application](https://github.com/NetDevPack/NetDevPack.Identity/tree/master/src/Samples/AspNetCore.Jwt.Sample) to understand how NetDevPack.Identity can be implemented and help you to decrease the complexity of your application and development time.
170172

0 commit comments

Comments
 (0)