few more cleanups

This commit is contained in:
Hailey
2024-04-12 00:36:34 -07:00
parent 73c98bc3af
commit 00abca970a
2 changed files with 6 additions and 6 deletions
@@ -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({
@@ -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,