auth library

Authentication APIs for the Hylid Bridge.

This library provides OAuth-style authentication capabilities through Hylid's authorization system.

Example:

import 'package:flutter_hylid_bridge/auth.dart';

await getAuthCode(
  scopes: ['auth_user', 'auth_profile'],
  success: (AuthCodeResult result) {
    final code = result.authCode?.toDart;
    print('Authorization code: $code');
  },
);

Extension Types

AuthCodeResult
Result object returned from authorization code requests.

Functions

getAuthCode({required List<String> scopes, void success(AuthCodeResult result)?, void fail()?, void complete()?}) Future<void>
Requests an authorization code with the specified scopes.