Merge branch 'hailey/expo-oauth-helper' into hailey/oauth
This commit is contained in:
@@ -27,7 +27,7 @@ export type BrowserOauthClientFactoryOptions = {
|
|||||||
|
|
||||||
const POPUP_KEY_PREFIX = '@@oauth-popup-callback:'
|
const POPUP_KEY_PREFIX = '@@oauth-popup-callback:'
|
||||||
|
|
||||||
export class BrowserOAuthClientFactory extends OAuthClientFactory {
|
export class RNOAuthClientFactory extends OAuthClientFactory {
|
||||||
readonly popupStore: DatabaseStore<PopupStateData>
|
readonly popupStore: DatabaseStore<PopupStateData>
|
||||||
readonly sessionStore: DatabaseStore<Session>
|
readonly sessionStore: DatabaseStore<Session>
|
||||||
|
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ const STORES = [
|
|||||||
'metadataCache',
|
'metadataCache',
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
export class BrowserOAuthDatabase {
|
export class RNOAuthDatabase {
|
||||||
async delete(key: string) {
|
async delete(key: string) {
|
||||||
await Storage.removeItem(key)
|
await Storage.removeItem(key)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ const STORES = [
|
|||||||
'metadataCache',
|
'metadataCache',
|
||||||
] as const
|
] as const
|
||||||
|
|
||||||
export class BrowserOAuthDatabase {
|
export class RNOAuthDatabase {
|
||||||
#dbPromise = DB.open<Schema>(
|
#dbPromise = DB.open<Schema>(
|
||||||
'@atproto-oauth-client',
|
'@atproto-oauth-client',
|
||||||
[
|
[
|
||||||
|
|||||||
Reference in New Issue
Block a user