8.2.0 • Published 2 months ago
@cobaltio/cobalt-js v8.2.0
Cobalt Javascript SDK
Cobalt frontend SDK.
Install
npm
npm install @cobaltio/cobalt-js
yarn
yarn add @cobaltio/cobalt-js
Usage
Include
Browser
<!-- use a specific version -->
<script src="https://cdn.jsdelivr.net/npm/@cobaltio/cobalt-js@8.0.0"></script>
<!-- use a version range instead of a specific version -->
<script src="https://cdn.jsdelivr.net/npm/@cobaltio/cobalt-js@8"></script>
<script src="https://cdn.jsdelivr.net/npm/@cobaltio/cobalt-js@8.0"></script>
<!-- omit the version completely to use the latest one -->
<!-- you should NOT use this in production -->
<script src="https://cdn.jsdelivr.net/npm/@cobaltio/cobalt-js"></script>
Node
import { Cobalt } from "@cobaltio/cobalt-js";
Initialize
// initialize with token
const cobalt = new Cobalt({
// the token you generate for linked accounts using the cobalt backend SDK
token: "COBALT_SESSION_TOKEN",
});
// Or, initialize without token
const cobalt = new Cobalt();
// and you can set the token later.
cobalt.token = "COBALT_SESSION_TOKEN";
Documentation
Read the SDK documentation here.
8.2.0
2 months ago
8.1.0
2 months ago
8.0.1
5 months ago
8.0.2
5 months ago
8.0.0
6 months ago
6.0.0
10 months ago
7.0.0
7 months ago
7.0.1
6 months ago
5.1.0
12 months ago
5.0.1
12 months ago
5.0.0
1 year ago
3.0.4
1 year ago
3.0.3
1 year ago
3.0.2
1 year ago
3.0.1
1 year ago
3.0.0
1 year ago
4.0.0
1 year ago
2.1.4
1 year ago
2.1.2
1 year ago
2.1.1
1 year ago
2.1.3
1 year ago
2.1.0
1 year ago
2.0.0
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago
0.0.20
1 year ago
0.0.19
1 year ago
0.1.0
1 year ago
0.1.1
1 year ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.18
2 years ago
0.0.13
2 years ago
0.0.14
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago
0.0.3
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago