1.2.1 • Published 2 years ago
@atatctech/athena-sdk v1.2.1
AthenaSDK-JS
JavaScript SDK for Athena2.
Installation
npm i @atatctech/athena-sdkUsage
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
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.2.1
2 years ago
1.1.2
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.0.0-b10
2 years ago
1.0.0-b11
2 years ago
1.0.6
2 years ago
1.0.0-b6
3 years ago
1.0.5
2 years ago
1.0.0-b7
3 years ago
1.0.4
2 years ago
1.0.0-b8
3 years ago
1.0.3
2 years ago
1.0.0-b9
2 years ago
1.0.0-b5
3 years ago
1.0.0-b4
3 years ago
1.0.0-b3
3 years ago
1.0.0-b2
3 years ago
1.0.0-b1
3 years ago
1.0.0-b0
3 years ago