calimero-auth-sdk
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -28,6 +28,5 @@ import * as nearAPI from "near-api-js"; | ||
export declare class CalimeroAuth { | ||
constructor(); | ||
isSignedIn(): boolean; | ||
signIn(config: any): void; | ||
signOut(): void; | ||
static isSignedIn(): boolean; | ||
static signIn(config: any): void; | ||
static signOut(): void; | ||
} |
@@ -73,7 +73,6 @@ "use strict"; | ||
class CalimeroAuth { | ||
constructor() { } | ||
isSignedIn() { | ||
static isSignedIn() { | ||
return localStorage.getItem("calimeroToken") !== null; | ||
} | ||
signIn(config) { | ||
static signIn(config) { | ||
if (!localStorage.getItem("calimeroSecret")) { | ||
@@ -106,6 +105,7 @@ localStorage.setItem("calimeroSecret", (0, uuid_1.v4)().toString()); | ||
} | ||
signOut() { | ||
static signOut() { | ||
localStorage.removeItem("calimeroToken"); | ||
localStorage.removeItem("calimeroSecret"); | ||
localStorage.removeItem("calimeroSecretHash"); | ||
window.location.href = "/"; | ||
} | ||
@@ -112,0 +112,0 @@ } |
{ | ||
"name": "calimero-auth-sdk", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "type": "commonjs", |
43166
149