Skip to content

Commit

Permalink
feat: [AUTH-1400] M2M Support (#242)
Browse files Browse the repository at this point in the history
- runs codegen and pulls in M2M support + lots of non-M2M support
- adds two manual methods to stytch/consumer/m2m.go
    - Token exchanges a M2M Client ID and Client Secret for a JWT
    - AuthenticateM2MToken validates that JWT using a project's JWKS
  • Loading branch information
max-stytch authored Aug 7, 2023
1 parent fe950be commit 0655a55
Show file tree
Hide file tree
Showing 40 changed files with 2,043 additions and 30 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ This client library supports all of Stytch's live products:
- [x] [Discovery](https://stytch.com/docs/b2b/api/discovered-organization-object)
- [x] [Passwords](https://stytch.com/docs/b2b/api/passwords-authenticate)

**Shared**

- [x] [M2M](https://stytch.com/docs/api/m2m-client)

### Example B2C usage

Create an API client:
Expand Down
3 changes: 3 additions & 0 deletions dist/b2b/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/b2b/organizations_members.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/b2b/otp_sms.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions dist/b2b/sessions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions dist/b2c/client.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

134 changes: 134 additions & 0 deletions dist/b2c/m2m.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

142 changes: 142 additions & 0 deletions dist/b2c/m2m_clients.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0655a55

Please sign in to comment.