few more cleanups
This commit is contained in:
@@ -13,7 +13,7 @@ import IsomorphicOAuthServerMetadataResolver from '@atproto/oauth-server-metadat
|
|||||||
import {CryptoSubtle} from './crypto-subtle'
|
import {CryptoSubtle} from './crypto-subtle'
|
||||||
import {DatabaseStore, RNOAuthDatabase} from './rn-oauth-database'
|
import {DatabaseStore, RNOAuthDatabase} from './rn-oauth-database'
|
||||||
|
|
||||||
export type BrowserOauthClientFactoryOptions = {
|
export type RNOAuthClientOptions = {
|
||||||
responseMode?: OAuthResponseMode
|
responseMode?: OAuthResponseMode
|
||||||
responseType?: OAuthResponseType
|
responseType?: OAuthResponseType
|
||||||
clientMetadata: OAuthClientMetadata
|
clientMetadata: OAuthClientMetadata
|
||||||
@@ -33,7 +33,7 @@ export class RNOAuthClientFactory extends OAuthClientFactory {
|
|||||||
responseType,
|
responseType,
|
||||||
crypto = {subtle: CryptoSubtle},
|
crypto = {subtle: CryptoSubtle},
|
||||||
fetch = globalThis.fetch,
|
fetch = globalThis.fetch,
|
||||||
}: BrowserOauthClientFactoryOptions) {
|
}: RNOAuthClientOptions) {
|
||||||
const database = new RNOAuthDatabase()
|
const database = new RNOAuthDatabase()
|
||||||
|
|
||||||
super({
|
super({
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ import IsomorphicOAuthServerMetadataResolver from '@atproto/oauth-server-metadat
|
|||||||
|
|
||||||
import {CryptoSubtle} from './crypto-subtle'
|
import {CryptoSubtle} from './crypto-subtle'
|
||||||
import {
|
import {
|
||||||
BrowserOAuthDatabase,
|
|
||||||
DatabaseStore,
|
DatabaseStore,
|
||||||
PopupStateData,
|
PopupStateData,
|
||||||
|
RNOAuthDatabase,
|
||||||
} from './rn-oauth-database'
|
} from './rn-oauth-database'
|
||||||
|
|
||||||
export type BrowserOauthClientFactoryOptions = {
|
export type RNOAuthClientOptions = {
|
||||||
responseMode?: OAuthResponseMode
|
responseMode?: OAuthResponseMode
|
||||||
responseType?: OAuthResponseType
|
responseType?: OAuthResponseType
|
||||||
clientMetadata: OAuthClientMetadata
|
clientMetadata: OAuthClientMetadata
|
||||||
@@ -38,8 +38,8 @@ export class RNOAuthClientFactory extends OAuthClientFactory {
|
|||||||
responseType,
|
responseType,
|
||||||
crypto = globalThis.crypto,
|
crypto = globalThis.crypto,
|
||||||
fetch = globalThis.fetch,
|
fetch = globalThis.fetch,
|
||||||
}: BrowserOauthClientFactoryOptions) {
|
}: RNOAuthClientOptions) {
|
||||||
const database = new BrowserOAuthDatabase()
|
const database = new RNOAuthDatabase()
|
||||||
|
|
||||||
super({
|
super({
|
||||||
clientMetadata,
|
clientMetadata,
|
||||||
|
|||||||
Reference in New Issue
Block a user