@atproto/api
Advanced tools
Comparing version 0.12.4 to 0.12.5
# @atproto/api | ||
## 0.12.5 | ||
### Patch Changes | ||
- [#2419](https://github.com/bluesky-social/atproto/pull/2419) [`3424a1770`](https://github.com/bluesky-social/atproto/commit/3424a17703891f5678ec76ef97e696afb3288b22) Thanks [@pfrazee](https://github.com/pfrazee)! - Add authFactorToken to session objects | ||
## 0.12.4 | ||
@@ -4,0 +10,0 @@ |
@@ -191,2 +191,3 @@ "use strict"; | ||
emailConfirmed: false, | ||
emailAuthFactor: false, | ||
}; | ||
@@ -217,2 +218,3 @@ this._updateApiEndpoint(res.data.didDoc); | ||
password: opts.password, | ||
authFactorToken: opts.authFactorToken, | ||
}); | ||
@@ -226,2 +228,3 @@ this.session = { | ||
emailConfirmed: res.data.emailConfirmed, | ||
emailAuthFactor: res.data.emailAuthFactor, | ||
}; | ||
@@ -257,2 +260,3 @@ this._updateApiEndpoint(res.data.didDoc); | ||
this.session.emailConfirmed = res.data.emailConfirmed; | ||
this.session.emailAuthFactor = res.data.emailAuthFactor; | ||
this._updateApiEndpoint(res.data.didDoc); | ||
@@ -259,0 +263,0 @@ this._persistSession?.('update', this.session); |
@@ -20,2 +20,3 @@ import { ModerationPrefs } from './moderation/types'; | ||
emailConfirmed?: boolean; | ||
emailAuthFactor?: boolean; | ||
} | ||
@@ -39,2 +40,3 @@ /** | ||
password: string; | ||
authFactorToken?: string | undefined; | ||
} | ||
@@ -41,0 +43,0 @@ /** |
{ | ||
"name": "@atproto/api", | ||
"version": "0.12.4", | ||
"version": "0.12.5", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Client library for atproto and Bluesky", |
@@ -151,2 +151,3 @@ import { ErrorResponseBody, errorResponseBody } from '@atproto/xrpc' | ||
emailConfirmed: false, | ||
emailAuthFactor: false, | ||
} | ||
@@ -177,2 +178,3 @@ this._updateApiEndpoint(res.data.didDoc) | ||
password: opts.password, | ||
authFactorToken: opts.authFactorToken, | ||
}) | ||
@@ -186,2 +188,3 @@ this.session = { | ||
emailConfirmed: res.data.emailConfirmed, | ||
emailAuthFactor: res.data.emailAuthFactor, | ||
} | ||
@@ -221,2 +224,3 @@ this._updateApiEndpoint(res.data.didDoc) | ||
this.session.emailConfirmed = res.data.emailConfirmed | ||
this.session.emailAuthFactor = res.data.emailAuthFactor | ||
this._updateApiEndpoint(res.data.didDoc) | ||
@@ -223,0 +227,0 @@ this._persistSession?.('update', this.session) |
@@ -29,2 +29,3 @@ import { AppBskyActorDefs } from './client' | ||
emailConfirmed?: boolean | ||
emailAuthFactor?: boolean | ||
} | ||
@@ -54,2 +55,3 @@ | ||
password: string | ||
authFactorToken?: string | undefined | ||
} | ||
@@ -56,0 +58,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2862322
65060