@authhero/adapter-interfaces 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.
@@ -4266,10 +4266,11 @@ export interface ListCodesResponse extends Totals {
4266
4266
  codes: Code[];
4267
4267
  }
4268
4268
  export interface CodesAdapter {
4269
- create: (tenant_id: string, authCode: CodeInsert) => Promise<Code>;
4269
+ create: (tenant_id: string, code: CodeInsert) => Promise<Code>;
4270
4270
  get: (tenant_id: string, code_id: string, type: CodeType) => Promise<Code | null>;
4271
4271
  list: (tenant_id: string, params: ListParams) => Promise<ListCodesResponse>;
4272
- remove: (tenant_id: string, code: string) => Promise<boolean>;
4272
+ used: (tenant_id: string, code_id: string) => Promise<boolean>;
4273
+ remove: (tenant_id: string, code_id: string) => Promise<boolean>;
4273
4274
  }
4274
4275
  export interface PasswordsAdapter {
4275
4276
  create: (tenant_id: string, params: PasswordInsert) => Promise<Password>;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "type": "git",
12
12
  "url": "https://github.com/markusahlstrand/authhero"
13
13
  },
14
- "version": "0.30.0",
14
+ "version": "0.31.0",
15
15
  "files": [
16
16
  "dist"
17
17
  ],