@fonoster/identity-client 0.30.0 → 0.31.0

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.
package/dist/index.d.ts CHANGED
@@ -125,6 +125,8 @@ export declare class IdentityClient {
125
125
  }>;
126
126
  exchangeCredentials(request: ExchangeCredentialsRequest): Promise<ExchangeResponse>;
127
127
  exchangeRefreshToken(refreshToken: string): Promise<ExchangeResponse>;
128
+ /** Passwordless sign-in: the code emailed by `sendVerificationCode`, for tokens. */
129
+ exchangeVerificationCode(email: string, code: string): Promise<ExchangeResponse>;
128
130
  /**
129
131
  * Sign-out: revokes `refreshToken` and every token rotated from the same
130
132
  * sign-in, so it can no longer be exchanged. Access tokens already issued
package/dist/index.js CHANGED
@@ -136,6 +136,10 @@ class IdentityClient {
136
136
  exchangeRefreshToken(refreshToken) {
137
137
  return this.unary("exchangeRefreshToken", { refreshToken });
138
138
  }
139
+ /** Passwordless sign-in: the code emailed by `sendVerificationCode`, for tokens. */
140
+ exchangeVerificationCode(email, code) {
141
+ return this.unary("exchangeVerificationCode", { email, code });
142
+ }
139
143
  /**
140
144
  * Sign-out: revokes `refreshToken` and every token rotated from the same
141
145
  * sign-in, so it can no longer be exchanged. Access tokens already issued
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/identity-client",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Lightweight client for the Fonoster Identity gRPC service",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -15,8 +15,7 @@
15
15
  "types": "dist/index",
16
16
  "scripts": {
17
17
  "prebuild": "rimraf ./dist tsconfig.tsbuildinfo && node scripts/sync-proto.mjs",
18
- "build": "tsc -p tsconfig.json",
19
- "clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo proto"
18
+ "build": "tsc -p tsconfig.json"
20
19
  },
21
20
  "dependencies": {
22
21
  "@grpc/grpc-js": "~1.14.6",
@@ -36,5 +35,5 @@
36
35
  "publishConfig": {
37
36
  "access": "public"
38
37
  },
39
- "gitHead": "b59b06a3ef325abe3f188c0fb87cc22d50ed5471"
38
+ "gitHead": "f0a5102dddeea0f70f659234108805bc10690f2e"
40
39
  }