diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-10-26 14:34:47 -0500 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-10-26 14:34:47 -0500 |
commit | 1983512fef37c5f27a048728815ae194bb24820b (patch) | |
tree | 0674298ccf9bb067457be7f77258df2556957972 /src/state/models/session.ts | |
parent | 349cfe7177affde7e3acae2616c6c8a2fa11b1c0 (diff) | |
download | voidsky-1983512fef37c5f27a048728815ae194bb24820b.tar.zst |
Update to latest APIs
Diffstat (limited to 'src/state/models/session.ts')
-rw-r--r-- | src/state/models/session.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/state/models/session.ts b/src/state/models/session.ts index 32d233315..6be43e6fe 100644 --- a/src/state/models/session.ts +++ b/src/state/models/session.ts @@ -1,5 +1,5 @@ import {makeAutoObservable} from 'mobx' -import AdxApi from '../../third-party/api' +import AtpApi from '../../third-party/api' import type * as GetAccountsConfig from '../../third-party/api/src/types/com/atproto/getAccountsConfig' import {isObj, hasProp} from '../lib/type-guards' import {RootStoreModel} from './root-store' @@ -135,7 +135,7 @@ export class SessionModel { } async describeService(service: string): Promise<ServiceDescription> { - const api = AdxApi.service(service) + const api = AtpApi.service(service) const res = await api.com.atproto.getAccountsConfig({}) return res.data } @@ -149,7 +149,7 @@ export class SessionModel { username: string password: string }) { - const api = AdxApi.service(service) + const api = AtpApi.service(service) const res = await api.com.atproto.createSession({}, {username, password}) if (res.data.jwt) { this.setState({ @@ -178,7 +178,7 @@ export class SessionModel { username: string inviteCode?: string }) { - const api = AdxApi.service(service) + const api = AtpApi.service(service) const res = await api.com.atproto.createAccount( {}, {username, password, email, inviteCode}, |