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

Improve sdk #18

Merged
merged 110 commits into from
Jan 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
c845be8
Start implementing new sdk
naetraga Dec 11, 2023
d5fed01
Start implementing sdk v2
naetraga Dec 13, 2023
5297ea0
Start implementing session
naetraga Dec 13, 2023
7a5363d
Implement session and make publish possible
naetraga Dec 14, 2023
f4b3912
✨ Add PR template
sam-corbado Jan 3, 2024
bf07271
✨ Setup Eslint and Prettier
sam-corbado Jan 3, 2024
4ab8ac4
🎨 Hand over code style to prettier
sam-corbado Jan 3, 2024
02d4b02
🎨 Format and lint project
sam-corbado Jan 3, 2024
3da1cce
✨ Generate open API spec
sam-corbado Jan 3, 2024
bac83d9
✨ Include X-Corbado-SDK header
sam-corbado Jan 3, 2024
b1d4cec
🎨 Begin harmonising ReadMe with PHP readme
sam-corbado Jan 3, 2024
c94182b
🧑‍💻 Enforce code style with extensions
sam-corbado Jan 3, 2024
423c6f1
🎨 Move bulk of script to makefile
sam-corbado Jan 4, 2024
7988f9a
🎨 Refactor tsconfig to accomodate cjs and esm builds
sam-corbado Jan 4, 2024
7bd2dbe
🎨 Refactor config.ts
sam-corbado Jan 4, 2024
2fe40ba
🎨 WIP Mapping folders
sam-corbado Jan 4, 2024
7533f7f
🎨 Mapping folders cont'd
sam-corbado Jan 5, 2024
2f1b309
🚧 WIP Re-implement services
sam-corbado Jan 5, 2024
fff31c3
✨ Implement Errors
sam-corbado Jan 8, 2024
a897b98
✨ Implement Services
sam-corbado Jan 8, 2024
04651b0
✨ Modify Helpers
sam-corbado Jan 8, 2024
a1fa45d
🎨 ✨ Modify entities
sam-corbado Jan 8, 2024
49a2756
🎨 Sundry lint and import update
sam-corbado Jan 8, 2024
22b92c3
✨ Implement Webhook entities
sam-corbado Jan 8, 2024
4922cc7
✨ Implement Webhook
sam-corbado Jan 8, 2024
eb8d43e
🧑‍💻 Add highlighter to extensions list
sam-corbado Jan 8, 2024
d8ed139
✨ Implement Validation
sam-corbado Jan 8, 2024
8dde03b
⚰️ Remove sdk folder
sam-corbado Jan 8, 2024
b08dcbc
🎨 Tiny clean-up
sam-corbado Jan 8, 2024
3906ef8
🚨 Lint error fixes
sam-corbado Jan 8, 2024
943d42c
⚡️ Tease out configs for cjs and esm
sam-corbado Jan 9, 2024
03a6304
🎨 Update makefile to reflect tsconfig
sam-corbado Jan 9, 2024
3c14bf2
🚚 Modify to please esm
sam-corbado Jan 9, 2024
c5e95a5
📦 Generate builds
sam-corbado Jan 9, 2024
51fc448
🎨 Improve Session
sam-corbado Jan 9, 2024
33031f6
🧑‍💻 Auto-delete unused imports
sam-corbado Jan 9, 2024
fb61624
🔧 Setup Jest
sam-corbado Jan 11, 2024
855b325
🔧 Configure jest to run properly
sam-corbado Jan 11, 2024
31b4baf
🔧 Get jest to read input correctly
sam-corbado Jan 11, 2024
c775f6e
🧑‍💻 Create test utils
sam-corbado Jan 11, 2024
be2a65c
✅ Create base tests
sam-corbado Jan 11, 2024
8971463
✅ Create Entity test
sam-corbado Jan 11, 2024
d7db014
🎨 Fix issues caught by tests
sam-corbado Jan 11, 2024
1a3f374
✅ Create service tests
sam-corbado Jan 11, 2024
6e19ca9
📦 Rebuid package based on updated core
sam-corbado Jan 11, 2024
38c9b8e
🚧 WIP Create Auth tests
sam-corbado Jan 11, 2024
6f79439
Update README.md
corbadoman Jan 12, 2024
b6698b3
🚧 WIP tests fix
sam-corbado Jan 12, 2024
8814211
🔧 Setup test env
sam-corbado Jan 12, 2024
f1f355b
✅ Create generic test utils
sam-corbado Jan 12, 2024
c9cb124
✨ Configure test ignore and linting
sam-corbado Jan 12, 2024
ed9fc53
🐛 Fix buggy error method
sam-corbado Jan 12, 2024
396e02e
✅ Completed tests part 1
sam-corbado Jan 12, 2024
9bad277
⚡️ Include updates in cjs and esm builds
sam-corbado Jan 12, 2024
78db7fc
🐛 fix(helpers.ts): remove console.log statement used for debugging du…
sam-corbado Jan 15, 2024
0bb5e10
🔧 refactor(config.ts): rename Configuration class to Config for bette…
sam-corbado Jan 15, 2024
6ea45e6
🐛 fix(server.ts): change port variable case from lowercase port to up…
sam-corbado Jan 15, 2024
15b6786
🐛 fix(server.ts): change port variable case from lowercase port to up…
sam-corbado Jan 15, 2024
6c35c1c
🐛 fix(webhook.ts): fix typo in import statement to correctly import H…
sam-corbado Jan 15, 2024
57d0561
🔧 chore(README.md): update Corbado SDK badges and fix class names in …
sam-corbado Jan 15, 2024
480f26e
🔥 chore(build.yml): remove outdated build workflow file
sam-corbado Jan 15, 2024
0c5481a
🔧 chore(build.yml): update workflow to include steps for verifying ve…
sam-corbado Jan 15, 2024
6d27992
🔧 chore(build.yml): update Node.js version to 14 for compatibility an…
sam-corbado Jan 15, 2024
57644a7
🔧 chore(build.yml): update actions/cache version from v2 to v3 for be…
sam-corbado Jan 15, 2024
5f2d867
🔧 chore(.gitignore): remove package-lock.json from gitignore to inclu…
sam-corbado Jan 15, 2024
bf4478f
🔍 chore(build.yml): remove npm audit step from the build workflow to …
sam-corbado Jan 15, 2024
35a7bef
🐛 Re-init package-lock.json
sam-corbado Jan 15, 2024
4bf0068
🔧 chore(build.yml): update cache-npm step to improve caching efficien…
sam-corbado Jan 15, 2024
3509c23
🔧 chore(.gitignore): remove unnecessary lib/ and tests/setupJest.js f…
sam-corbado Jan 16, 2024
6cbe03a
🔧 chore(jest.config.js): update Jest transform configuration to use '…
sam-corbado Jan 16, 2024
383fd72
🔧 chore(build.yml): update Node.js version to 18 in the setup step to…
sam-corbado Jan 16, 2024
5ec4809
🔧 chore(tsconfig.base.json): enable 'forceConsistentCasingInFileNames…
sam-corbado Jan 16, 2024
a4cf8cd
🐛 fix(user.ts): remove unnecessary file extension from import statements
sam-corbado Jan 16, 2024
489939d
🐛 fix(server.ts): change port variable case from lowercase port to up…
sam-corbado Jan 16, 2024
7fb8098
🔥 refactor(smsOTPService.ts): remove SmsOTP service file
sam-corbado Jan 16, 2024
8081cd7
✨ feat(smsOtpService.ts): add SmsOTP service to handle sending and va…
sam-corbado Jan 16, 2024
e9e7a5b
🚀 chore(build.yml): add Codecov and jest-badge-deploy-action steps to…
sam-corbado Jan 16, 2024
64e1859
Renamed environment variables
corbadoman Jan 16, 2024
e2f840a
🐛 fix(helpers.ts): remove unnecessary comment in convertToServerError…
sam-corbado Jan 16, 2024
c2254f4
🔧 chore(api.ts): add support for additional frontend frameworks (Angu…
sam-corbado Jan 17, 2024
f0d559c
🔧 fix(config.ts): update DefaultBackendAPI to use CORBADO_BACKEND_API…
sam-corbado Jan 17, 2024
9c48252
📝 docs(todo.md): update todo list
sam-corbado Jan 17, 2024
5085b6f
📝 docs: add example environment file with placeholders for project ID…
sam-corbado Jan 17, 2024
54dd618
🚀 feat(docs): add documentation for build process
sam-corbado Jan 17, 2024
5201289
🔥 Remove cjs from module tracking
sam-corbado Jan 17, 2024
977bb48
🔥 Remove esm from module tracking
sam-corbado Jan 17, 2024
b4677c0
🔧 chore(.gitignore): add cjs/ and esm/ directories to .gitignore to e…
sam-corbado Jan 17, 2024
b511ec8
🔧 fix(emailOtp.test.ts): use a random test email instead of a hardcod…
sam-corbado Jan 17, 2024
36125a6
🐛 fix(user.test.ts): fix typo in function name from getusers() to get…
sam-corbado Jan 17, 2024
d789293
🔄 refactor(sdk.ts): rename getUsers method to users for better readab…
sam-corbado Jan 17, 2024
ed351be
✨ feat(config.test.ts): add integration tests for the Configuration c…
sam-corbado Jan 17, 2024
47c7081
🐛 fix(authToken.test.ts): remove unnecessary import of axios from aut…
sam-corbado Jan 18, 2024
9d769eb
🐛 fix(httpStatusCodes.ts): add new error code for invalid URL
sam-corbado Jan 18, 2024
31cecb3
🔧 chore(config.ts): update DefaultBackendAPI to use a hardcoded value…
sam-corbado Jan 18, 2024
151f0af
🔧 chore(server.ts): change port variable case from lowercase port to …
sam-corbado Jan 18, 2024
4b83fce
🔧 chore(README.md): update Node SDK reference and examples to reflect…
sam-corbado Jan 18, 2024
120af80
🔧 chore(package.json): add "build" script to run the "make build" com…
sam-corbado Jan 18, 2024
8a530a3
Session access fix
corbadoman Jan 18, 2024
82be948
Removed jwsk cache, harmonized config with PHP
corbadoman Jan 18, 2024
ed65d99
Updated README.md
corbadoman Jan 18, 2024
a26534c
More bug fixes
corbadoman Jan 18, 2024
f84cbac
🔨 refactor(sessionService.ts): remove unused RequestWithCookies inter…
sam-corbado Jan 19, 2024
83456bf
🔧 chore(package.json): remove unused dependency 'memory-cache-node' t…
sam-corbado Jan 19, 2024
dceb663
Minor changes
corbadoman Jan 19, 2024
356d308
Fixed JWKS cache
corbadoman Jan 19, 2024
0bb6b95
Fixed integration test
corbadoman Jan 19, 2024
375797e
Added environment check
corbadoman Jan 19, 2024
c87f2aa
🐛 fix(config.ts): fix import statement for Assert module to include f…
sam-corbado Jan 19, 2024
4c21096
🔧 chore(config.test.ts): add unit tests for the Configuration class t…
sam-corbado Jan 19, 2024
ae8e2a8
✨ feat(sessionExample.ts): add example code for handling session cook…
sam-corbado Jan 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,7 @@ typings/
.tern-port

.idea/

package-lock.json

lib/
195 changes: 0 additions & 195 deletions dist/cjs/SDK.js

This file was deleted.

181 changes: 0 additions & 181 deletions dist/cjs/config/configuration.js

This file was deleted.

Loading