Skip to content

Commit

Permalink
feat: multi factor auth (#85)
Browse files Browse the repository at this point in the history
* fix: mfa related updates

* fix: remove unnecessary APIs

* fix: mfa rid

* fix: sign in/up apis

* fix: update

* fix: update

* fix: update

* fix: update

* fix: changelog

* fix: after merge
  • Loading branch information
sattvikc authored Mar 19, 2024
1 parent f09449b commit d14f4d0
Show file tree
Hide file tree
Showing 2 changed files with 311 additions and 77 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [unreleased]

## [5.0.0] - 2024-03-19

- `TOTP_NOT_ENABLED_ERROR` status is removed from the totp related APIs.
- In `/appid-<appId>/recipe/totp/device` POST, `deviceName` input is now optional. The response also includes `deviceName`.
- Adds `/recipe/totp/device/import` POST API.
- `INVALID_TOTP_ERROR`, `LIMIT_REACHED_ERROR` responses now include `currentNumberOfFailedAttempts` and `maxNumberOfFailedAttempts` in the response.
- Adds `/appid-<appId>/<tenantId>/recipe/signinup/code/check` POST API.
- Adds `consumedDevice` in the success response for `/appid-<appId>/<tenantId>/recipe/signinup/code/consume` POST API.
- `/appid-<appId>/<tenantId>/recipe/signinup/code/remove` POST API now accepts `preAuthSessionId` as input which can be used to remove code for a device.
- `/appid-<appId>/<tenantId>/recipe/session/remove` POST API can now only be called using public tenant if `revokeAcrossAllTenants` is set to true.
- `/appid-<appId>/<tenantId>/recipe/session/user` GET API can now only be called using public tenant if `fetchAcrossAllTenants` is set to true.
- Makes `useDynamicSigningKey` input mandatory in `/appid-<appId>/recipe/session/refresh` POST API.
- Adds `firstFactors` and `requiredSecondaryFactors` to the input of `/recipe/multitenancy/connectionuridomain` PUT, `/recipe/multitenancy/app` PUT and `/appid-<appId>/recipe/multitenancy/tenant` PUT APIs.
- Adds `firstFactors` and `requiredSecondaryFacrors` to the response of `/appid-<appId>/<tenantId>/recipe/multitenancy/tenant` GET API.

## [4.0.3]

- Adds an optional `useDynamicSigningKey` to the session refresh (`POST` `/appid-<appId>/recipe/session/refresh`) request body
Expand Down
Loading

0 comments on commit d14f4d0

Please sign in to comment.