Skip to content

Commit

Permalink
clear the baseToken and baseModel on BaseAuthStore.clear()
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Aug 6, 2022
1 parent 2f04a42 commit f928544
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/pocketbase.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pocketbase.es.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pocketbase.es.mjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pocketbase.iife.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/pocketbase.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.3.0",
"version": "0.3.1",
"name": "pocketbase",
"description": "PocketBase JavaScript SDK",
"author": "Gani Georgiev",
Expand Down
2 changes: 2 additions & 0 deletions src/stores/BaseAuthStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export default abstract class BaseAuthStore implements AuthStore {
* Removes the stored token and model data form the auth store.
*/
clear(): void {
this.baseToken = '';
this.baseModel = {};
this.triggerChange();
}

Expand Down

0 comments on commit f928544

Please sign in to comment.