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

Add @speechmatics/auth package for JWT creation #67

Merged
merged 76 commits into from
Nov 20, 2024
Merged

Add @speechmatics/auth package for JWT creation #67

merged 76 commits into from
Nov 20, 2024

Conversation

mnemitz
Copy link
Contributor

@mnemitz mnemitz commented Oct 29, 2024

  • Add @speechmatics/auth package which can be used to generate JWTs for batch, real-time and Flow
  • Readme + links to documentation
  • Updated examples

@mnemitz mnemitz changed the title Package for JWT creation Draft: package for JWT creation Oct 29, 2024
mnemitz added a commit that referenced this pull request Oct 29, 2024
## Summary

- Use PNPM as package manager instead of NPM, as it has a very smooth
out of the box experience for monorepos/workspaces:
https://pnpm.io/workspaces
- Add `real-time-client` package which is copied from the current Portal
RT implementation
- Add `batch-client` package which is more or less unchanged, apart from
a few enhancements
- Add `flow-client` package based on flow app implementation
- Add `flow-client-react` package for utility hooks wrapping the Flow
client
- Use Rollup for building each package following this (wonderful) Github
Gist:
https://gist.github.com/aleclarson/9900ed2a9a3119d865286b218e14d226

## Future work

After this PR is merged, there are a few pieces of follow-up work:

- Use changesets to manage releases:
https://github.com/changesets/changesets
- Add package for JWT generation across services:
#67
- Add utility hooks packages
- Add batch/RT examples to NextJS
@mnemitz mnemitz changed the base branch from next to main November 1, 2024 16:50
@mnemitz mnemitz changed the title Draft: package for JWT creation Add @speechmatics/auth package for JWT creation Nov 1, 2024
Copy link
Contributor

@TudorCRL TudorCRL left a comment

Choose a reason for hiding this comment

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

mostly lgtm, just one small comment concerning regions

packages/auth/src/index.ts Show resolved Hide resolved
@mnemitz mnemitz merged commit 072cf8b into main Nov 20, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants