Commit bbc1b93
Vadim Belov
Support cookie-based refresh tokens in BaseAuthController
Enhanced the `RefreshToken` method to support retrieving the
refresh token from a cookie if it is not provided in the request
body. Introduced a `useCookie` flag to determine the source of
the refresh token. If using a cookie, a new random refresh token
is generated upon response. This improves flexibility in token
handling by accommodating both cookie-based and body-based
refresh token workflows.1 parent a6d08f9 commit bbc1b93
File tree
1 file changed
+3
-2
lines changed- Sources/EasyExtensions.AspNetCore.Authorization/Controllers
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
106 | 107 | | |
107 | 108 | | |
108 | 109 | | |
109 | | - | |
| 110 | + | |
110 | 111 | | |
111 | 112 | | |
112 | 113 | | |
| |||
0 commit comments