mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
11 lines
505 B
Dart
11 lines
505 B
Dart
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:spotube/provider/authentication/authentication.dart';
|
|
import 'package:spotube/provider/spotify_provider.dart';
|
|
import 'package:spotube/services/custom_spotify_endpoints/spotify_endpoints.dart';
|
|
|
|
final customSpotifyEndpointProvider = Provider<CustomSpotifyEndpoints>((ref) {
|
|
ref.watch(spotifyProvider);
|
|
final auth = ref.watch(authenticationProvider);
|
|
return CustomSpotifyEndpoints(auth.asData?.value?.accessToken.value ?? "");
|
|
});
|