From 00abca970a52da971272d7926b88f1618a190173 Mon Sep 17 00:00:00 2001 From: Hailey Date: Fri, 12 Apr 2024 00:36:34 -0700 Subject: [PATCH] few more cleanups --- .../src/rn-oauth-client-factory.native.ts | 4 ++-- .../src/rn-oauth-client-factory.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/expo-bluesky-oauth-client/src/rn-oauth-client-factory.native.ts b/modules/expo-bluesky-oauth-client/src/rn-oauth-client-factory.native.ts index 79da5cd035..81713e140c 100644 --- a/modules/expo-bluesky-oauth-client/src/rn-oauth-client-factory.native.ts +++ b/modules/expo-bluesky-oauth-client/src/rn-oauth-client-factory.native.ts @@ -13,7 +13,7 @@ import IsomorphicOAuthServerMetadataResolver from '@atproto/oauth-server-metadat import {CryptoSubtle} from './crypto-subtle' import {DatabaseStore, RNOAuthDatabase} from './rn-oauth-database' -export type BrowserOauthClientFactoryOptions = { +export type RNOAuthClientOptions = { responseMode?: OAuthResponseMode responseType?: OAuthResponseType clientMetadata: OAuthClientMetadata @@ -33,7 +33,7 @@ export class RNOAuthClientFactory extends OAuthClientFactory { responseType, crypto = {subtle: CryptoSubtle}, fetch = globalThis.fetch, - }: BrowserOauthClientFactoryOptions) { + }: RNOAuthClientOptions) { const database = new RNOAuthDatabase() super({ diff --git a/modules/expo-bluesky-oauth-client/src/rn-oauth-client-factory.ts b/modules/expo-bluesky-oauth-client/src/rn-oauth-client-factory.ts index c15eb60308..a8e2dc179e 100644 --- a/modules/expo-bluesky-oauth-client/src/rn-oauth-client-factory.ts +++ b/modules/expo-bluesky-oauth-client/src/rn-oauth-client-factory.ts @@ -12,12 +12,12 @@ import IsomorphicOAuthServerMetadataResolver from '@atproto/oauth-server-metadat import {CryptoSubtle} from './crypto-subtle' import { - BrowserOAuthDatabase, DatabaseStore, PopupStateData, + RNOAuthDatabase, } from './rn-oauth-database' -export type BrowserOauthClientFactoryOptions = { +export type RNOAuthClientOptions = { responseMode?: OAuthResponseMode responseType?: OAuthResponseType clientMetadata: OAuthClientMetadata @@ -38,8 +38,8 @@ export class RNOAuthClientFactory extends OAuthClientFactory { responseType, crypto = globalThis.crypto, fetch = globalThis.fetch, - }: BrowserOauthClientFactoryOptions) { - const database = new BrowserOAuthDatabase() + }: RNOAuthClientOptions) { + const database = new RNOAuthDatabase() super({ clientMetadata,