Files
tatlock-ui/lib/core/auth/web_utils_web.dart
T
Jeroen SchweitzerandClaude Opus 4.5 9c41a8805d
Build and Push / release (push) Successful in 3s
Build and Push / build (push) Successful in 3m0s
chore: release v1.0.5
Web authentication now uses OIDC Authorization Code flow with PKCE
instead of NPM forward auth. Added callback route and web utilities.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 12:01:42 +01:00

20 lines
439 B
Dart

/// Web-specific utilities for browser operations.
library;
import 'package:web/web.dart' as web;
/// Redirect the browser to a URL.
void redirectTo(String url) {
web.window.location.href = url;
}
/// Get the current browser URL.
String getCurrentUrl() {
return web.window.location.href;
}
/// Replace the current URL in history without navigation.
void replaceUrl(String url) {
web.window.history.replaceState(null, '', url);
}