Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add bindings for Multi-Factor Authentication (Phone) #932

Merged
merged 11 commits into from
Aug 9, 2024
Merged

Conversation

J0
Copy link
Contributor

@J0 J0 commented Jul 21, 2024

What kind of change does this PR introduce?

Adds the bindings for MFA (Phone) Client library. In particular, add

  • Enroll - now allows for enrollment of Phone Factors
  • Challenge for Phone - now takes in a channel
  • List Factors - now supports access of Phone factors

TODOS:

  • Remove empty totp from response field on enroll response

Not addressed yet

  • challengeAndVerify will currently return an error on the verify step when used with a phone factor. We could introduce an alternate behaviour (e.g. terminating at the challenge step gracefully) since we have the type of the challenge-associated-factor in the response. This is not addressed in this PR

src/lib/types.ts Outdated Show resolved Hide resolved
src/GoTrueClient.ts Outdated Show resolved Hide resolved
src/lib/types.ts Outdated Show resolved Hide resolved
src/lib/types.ts Outdated Show resolved Hide resolved
src/lib/types.ts Show resolved Hide resolved
@J0 J0 changed the title feat: add mfa(sms) feat: add mfa (phone) Aug 4, 2024
src/GoTrueClient.ts Outdated Show resolved Hide resolved
src/lib/types.ts Outdated Show resolved Hide resolved
@J0 J0 marked this pull request as ready for review August 9, 2024 02:52
src/GoTrueClient.ts Show resolved Hide resolved
src/lib/types.ts Outdated Show resolved Hide resolved
src/lib/types.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@hf hf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, please update the PR description to use human-readable text and clean up based on your TODO comment.

@J0 J0 changed the title feat: add mfa (phone) feat: add bindings for Multi-Factor Authentication (Phone) Aug 9, 2024
@J0 J0 merged commit b957c30 into master Aug 9, 2024
5 checks passed
@J0 J0 deleted the j0/add_mfa_sms branch August 9, 2024 08:28
kangmingtay pushed a commit that referenced this pull request Aug 30, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.65.0](v2.64.4...v2.65.0)
(2024-08-27)


### Features

* add bindings for Multi-Factor Authentication (Phone)
([#932](#932))
([b957c30](b957c30))
* add kakao to sign in with ID token
([#845](#845))
([e2337ba](e2337ba))
* remove session, emit `SIGNED_OUT` when JWT `session_id` is invalid
([#905](#905))
([db41710](db41710))


### Bug Fixes

* Correct typo in GoTrueClient warning message
([#938](#938))
([8222ee1](8222ee1))
* don't throw error in exchangeCodeForSession
([#946](#946))
([6e161ec](6e161ec))
* move docker compose to v2
([#940](#940))
([38eef89](38eef89))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants