redirectUris property

List<String> redirectUris
final

One redirect URI per platform. pickRedirectUri selects the correct entry at runtime based on the current platform.

Provide all platform URIs here so the app works on every target without manual changes:

redirectUris: [
  'https://your-domain/redirect.html', // web
  'com.example.app://redirect',         // android / ios / macOS
  'http://localhost:4400/redirect',      // desktop (Windows / Linux)
]

macOS shares the custom-scheme entry with mobile because oidc_macos uses ASWebAuthenticationSession and cannot receive a redirect on a http://localhost loopback URL. Make sure the macOS Runner's Info.plist registers the same scheme under CFBundleURLSchemes.

Implementation

final List<String> redirectUris;