openAiAuthService function

  1. @Riverpod(keepAlive: true)
OpenAiAuthService openAiAuthService(
  1. Ref<Object?> ref
)

Auth service providers for OAuth-based AI providers.

Implementation

@Riverpod(keepAlive: true)
OpenAiAuthService openAiAuthService(Ref ref) {
  return OpenAiAuthService(ref.watch(secureStorageProvider));
}