F
Flint DartDocs
GitHub

API Reference

Auth Providers

Focused reference for Flint Dart and Flint UI APIs, with copyable examples and practical notes.

Auth Providers

OAuth URL generation and provider metadata.

String AuthService.getGoogleAuthUrl({required String callbackUrl})

Build a Google OAuth URL with PKCE support.

String AuthService.getGitHubAuthUrl({required String callbackUrl})

Build a GitHub OAuth authorization URL.

String AuthService.getFacebookAuthUrl({required String callbackUrl})

Build a Facebook OAuth authorization URL.

String AuthService.getAppleAuthUrl({required String callbackUrl})

Build an Apple Sign In URL.

Map<String, dynamic> AuthService.getAvailableProviders()

Return configured providers and redirect base info.

Example

CodeBlock dart
app.get('/auth/google', (Context ctx) async {
  final url = AuthService.getGoogleAuthUrl(
    callbackUrl: 'http://localhost:3030/auth/google/callback',
  );
  return ctx.res.redirect(url);
});
F
Flint DartBackend framework and Dart UI docs

Build routes, controllers, APIs, docs, and browser UI from one Dart-shaped stack.

Controllers
OpenAPI
Flint UI
Copyright 2024 Flint Dart. Maintained by Eulogia Technologies.
v 1.1.14
MIT License
Built with Dart