Skip to content

Commit

Permalink
adds newest version of package
Browse files Browse the repository at this point in the history
  • Loading branch information
Dopeamin committed Sep 13, 2024
1 parent a949f61 commit 4bd1f7e
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 14 deletions.
9 changes: 6 additions & 3 deletions examples/identifier/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import express from 'express';
import { Config, SDK } from '@corbado/node-sdk';

const router = express.Router();
const config = new Config('pro-1', 'corbado1_hALCgZhe3oSwec8Hr2ZuF9w4DZAo9w', 'https://auth.corbado-dev.com');
config.setFrontendAPI('https://pro-1.frontendapi.corbado-dev.io');
config.setBackendAPI('http://localhost:15902/v2');
const config = new Config(
'pro-1',
'corbado1_hALCgZhe3oSwec8Hr2ZuF9w4DZAo9w',
'https://pro-1.frontendapi.corbado-dev.io',
'http://localhost:15902',
);
const sdk = new SDK(config);

// Route to create a new identifier for a user
Expand Down
8 changes: 4 additions & 4 deletions examples/package-lock.json

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

2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"author": "",
"license": "ISC",
"dependencies": {
"@corbado/node-sdk": "^3.0.0-alpha.2",
"@corbado/node-sdk": "^3.0.0-alpha.3",
"cookie-parser": "^1.4.6",
"express": "^4.20.0"
},
Expand Down
9 changes: 6 additions & 3 deletions examples/session/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ import { Config, SDK } from '@corbado/node-sdk';

const router = express.Router();

const config = new Config('pro-1', 'corbado1_hALCgZhe3oSwec8Hr2ZuF9w4DZAo9w', 'https://auth.corbado-dev.com');
config.setFrontendAPI('https://pro-1.frontendapi.corbado-dev.io');
config.setBackendAPI('http://localhost:15902/v2');
const config = new Config(
'pro-1',
'corbado1_hALCgZhe3oSwec8Hr2ZuF9w4DZAo9w',
'https://pro-1.frontendapi.corbado-dev.io',
'http://localhost:15902',
);
const sdk = new SDK(config);

router.get('/', async (_, res) => {
Expand Down
9 changes: 6 additions & 3 deletions examples/user/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ import express from 'express';
import { Config, SDK } from '@corbado/node-sdk';

const router = express.Router();
const config = new Config('pro-1', 'corbado1_hALCgZhe3oSwec8Hr2ZuF9w4DZAo9w', 'https://auth.corbado-dev.com');
config.setFrontendAPI('https://pro-1.frontendapi.corbado-dev.io');
config.setBackendAPI('http://localhost:15902/v2');
const config = new Config(
'pro-1',
'corbado1_hALCgZhe3oSwec8Hr2ZuF9w4DZAo9w',
'https://pro-1.frontendapi.corbado-dev.io',
'http://localhost:15902',
);
const sdk = new SDK(config);

const userService = sdk.users();
Expand Down

0 comments on commit 4bd1f7e

Please sign in to comment.