Merge branch 'chore/cleanup-tokensync-jsdoc' into 'main'
chore(ui): убрать упоминание TokenSync из RequireAuth JSDoc See merge request 2-6/2-6-4/terravault/ordinis!275
This commit is contained in:
@@ -19,8 +19,10 @@ import { useAuth } from '@/auth/useAuth'
|
|||||||
* <li>Click «Войти» → signinRedirect → Keycloak → callback → authenticated.</li>
|
* <li>Click «Войти» → signinRedirect → Keycloak → callback → authenticated.</li>
|
||||||
* <li>OIDC error в URL (?error=...) → error screen (не редиректим в цикле).</li>
|
* <li>OIDC error в URL (?error=...) → error screen (не редиректим в цикле).</li>
|
||||||
* <li>auth.error (Keycloak недоступен) → error screen с сообщением.</li>
|
* <li>auth.error (Keycloak недоступен) → error screen с сообщением.</li>
|
||||||
* <li>Mutations пытаются 401 → TokenSync ловит, делает silentRenew или
|
* <li>Mutations пытаются 401 → apiClient interceptor ловит, делает
|
||||||
* показывает inline ошибку (anonymous user → не редиректим без CTA).</li>
|
* ensureFreshToken + retry; на refresh failure keycloak-js сам
|
||||||
|
* редиректит на /login (full reload). Inline ошибка остаётся для
|
||||||
|
* anonymous users без CTA-сценария.</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*/
|
*/
|
||||||
export function RequireAuth({ children }: { children: ReactNode }) {
|
export function RequireAuth({ children }: { children: ReactNode }) {
|
||||||
|
|||||||
Reference in New Issue
Block a user