andersnas-nodecat
- Description:
Enhance your app's security with NodeCat, a robust solution for generating and validating Common Access Tokens in a NodeJS environment. Ideal for developers needing reliable token management.
- Copyright:
- 2025 Eyevinn Technology AB
Methods
(async, static) createAndersnasNodecatInstance(context, body) → {AndersnasNodecat}
- Description:
Create a new NodeCat instance
Example
import { Context } from '@osaas/client-core';
import { createAndersnasNodecatInstance } from '@osaas/client-services';
const ctx = new Context();
const body: AndersnasNodecatConfig = { name: 'myinstance', ... };
const instance = await createAndersnasNodecatInstance(ctx, body);
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
AndersnasNodecatConfig | Service instance configuration |
Returns:
- Service instance
- Type
- AndersnasNodecat
(async, static) getAndersnasNodecatInstance(context, name) → {AndersnasNodecat}
- Description:
Get a NodeCat instance
Example
import { Context } from '@osaas/client-core';
import { getAndersnasNodecatInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getAndersnasNodecatInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the nodecat to be retrieved |
Returns:
- Service instance
- Type
- AndersnasNodecat
(async, static) removeAndersnasNodecatInstance(context, name)
- Description:
Remove a NodeCat instance
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the nodecat to be removed |