@oblax/platform-server 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -9,9 +9,9 @@ export { ServerPlatform } from './platform.js';
9
9
  * const oblax = new Oblax({
10
10
  * endpoint: 'https://api.my-app.oblax.io',
11
11
  * clientId: 'my-service',
12
- * modules: [PlatformServer(), Auth()],
12
+ * modules: [PlatformServer(), Auth({ realm: 'webapp' })],
13
13
  * })
14
- * await oblax.auth.session.create({ username: 'svc', password: 'secret' })
14
+ * await oblax.auth.session.create({ email: 'svc@example.com', password: 'secret' })
15
15
  * ```
16
16
  */
17
17
  export declare function PlatformServer(): OblaxModulePlugin<'platform', ServerPlatform>;
package/dist/index.js CHANGED
@@ -8,9 +8,9 @@ export { ServerPlatform } from './platform.js';
8
8
  * const oblax = new Oblax({
9
9
  * endpoint: 'https://api.my-app.oblax.io',
10
10
  * clientId: 'my-service',
11
- * modules: [PlatformServer(), Auth()],
11
+ * modules: [PlatformServer(), Auth({ realm: 'webapp' })],
12
12
  * })
13
- * await oblax.auth.session.create({ username: 'svc', password: 'secret' })
13
+ * await oblax.auth.session.create({ email: 'svc@example.com', password: 'secret' })
14
14
  * ```
15
15
  */
16
16
  export function PlatformServer() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oblax/platform-server",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Oblax SDK — server platform (Bearer token auth)",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -38,11 +38,11 @@
38
38
  "access": "public"
39
39
  },
40
40
  "peerDependencies": {
41
- "@oblax/core": "^2.0.0"
41
+ "@oblax/core": "^2.1.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "typescript": "^5.5.0",
45
- "@oblax/core": "2.0.0"
45
+ "@oblax/core": "2.1.0"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "tsc --build tsconfig.json",