discord_oauth2 1.0.1 copy "discord_oauth2: ^1.0.1" to clipboard
discord_oauth2: ^1.0.1 copied to clipboard

A lightweight, secure, and ready-to-use Flutter package to integrate Discord OAuth2 login with PKCE support.

example/lib/main.dart

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'screens/mobile_screen.dart';
import 'screens/web_screen.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Discord OAuth2 Example',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        useMaterial3: true,
        colorScheme: ColorScheme.fromSeed(
          seedColor: const Color(0xFF5865F2),
          brightness: kIsWeb ? Brightness.dark : Brightness.light,
        ),
      ),
      home: kIsWeb ? const WebScreen() : const MobileScreen(),
    );
  }
}
0
likes
160
points
118
downloads

Documentation

API reference

Publisher

verified publisherlazyalgorithm.com

Weekly Downloads

A lightweight, secure, and ready-to-use Flutter package to integrate Discord OAuth2 login with PKCE support.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

crypto, flutter, flutter_web_auth_2

More

Packages that depend on discord_oauth2