@go-avro/avro-js 0.0.2-beta.89 → 0.0.2-beta.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -79,7 +79,7 @@ export class AvroQueryClient {
79
79
  mutationFn: async ({ username, password, code, cancelToken }) => {
80
80
  const resp = await this.post('/login', JSON.stringify({ username, password, code }), cancelToken, { 'Content-Type': 'application/json' });
81
81
  if (!resp || !('access_token' in resp)) {
82
- if (resp.msg === "TOTP email sent") {
82
+ if (resp.msg === "TOTP required") {
83
83
  return LoginResponse.NEEDS_TOTP;
84
84
  }
85
85
  throw new StandardError(401, 'Invalid login response');
@@ -135,7 +135,7 @@ export class AvroQueryClient {
135
135
  mutationFn: async ({ token, cancelToken }) => {
136
136
  const resp = await this._xhr('POST', `/google/authorize?token=${token}`, {}, cancelToken, { 'Content-Type': 'application/json' });
137
137
  if (!resp || !('access_token' in resp)) {
138
- if (resp.msg === "TOTP email sent") {
138
+ if (resp.msg === "TOTP required") {
139
139
  return LoginResponse.NEEDS_TOTP;
140
140
  }
141
141
  throw new StandardError(401, 'Invalid Google login response');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@go-avro/avro-js",
3
- "version": "0.0.2-beta.89",
3
+ "version": "0.0.2-beta.90",
4
4
  "description": "JS client for Avro backend integration.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",