

abstract final class TraktCredentials {
  const TraktCredentials._();

  static const String clientId =
      'YOUR_TRAKT_CLIENT_ID';
  static const String clientSecret =
      'YOUR_TRAKT_CLIENT_SECRET';


  static const String redirectUri = 'smplayer://oauth-trakt';
  static const String scheme = 'smplayer';
  static const String host = 'oauth-trakt';

  static const String apiBaseUrl = 'https://api.trakt.tv';
  static const String authBaseUrl = 'https://trakt.tv';
  static const String apiVersion = '2';


  static Uri authorizeUrl(String state) =>
      Uri.parse('$authBaseUrl/oauth/authorize').replace(
        queryParameters: <String, String>{
          'response_type': 'code',
          'client_id': clientId,
          'redirect_uri': redirectUri,
          'state': state,
        },
      );
}
