1.2.1 • Published 7 months ago
@atatctech/athena-sdk v1.2.1
AthenaSDK-JS
JavaScript SDK for Athena2.
Installation
npm i @atatctech/athena-sdk
Usage
const instance = useAthena();
test(instance,
() => {
console.log("online");
}, () => {
console.log("unavailable");
}, undefined, () => {
console.log("offline");
});
Create an Instance
const baseUrl = "http://localhost";
const port = 8080;
const instance = useAthena(baseUrl, port);
baseUrl
refers to the backend server address. In this case, it is set to "http://localhost" instead of "https://athena2.atatctech.com" by default.
port
specifies the port that the server listens.
The following example is equivalent to the one above.
const instance = useAthena("http://localhost:8080");
APIs
test()
userExists()
signUpRequest()
signUp()
signIn()
directSignIn()
athenaAuthToken()
getUserByName()
getUserByUID()
getUsers()
getUsersByUIDs()
getUsersWith()
getUserByAAT()
setUser()
setName()
setEmailRequest()
setEmail()
setPasswordRequest()
setPassword()
revokeTokens()
1.2.0
9 months ago
1.1.1
9 months ago
1.1.0
9 months ago
1.0.8
11 months ago
1.0.7
11 months ago
1.1.4
9 months ago
1.1.3
9 months ago
1.2.1
7 months ago
1.1.2
9 months ago
1.0.2
11 months ago
1.0.1
11 months ago
1.0.0
11 months ago
1.0.0-b10
11 months ago
1.0.0-b11
11 months ago
1.0.6
11 months ago
1.0.0-b6
12 months ago
1.0.5
11 months ago
1.0.0-b7
12 months ago
1.0.4
11 months ago
1.0.0-b8
12 months ago
1.0.3
11 months ago
1.0.0-b9
11 months ago
1.0.0-b5
12 months ago
1.0.0-b4
12 months ago
1.0.0-b3
12 months ago
1.0.0-b2
12 months ago
1.0.0-b1
12 months ago
1.0.0-b0
12 months ago