Skip to content

Commit e3f1ee6

Browse files
committed
added refresh method from gotrue
1 parent 05152b1 commit e3f1ee6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/netlify-identity.js

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ const netlifyIdentity = {
4747
}
4848
return store.gotrue;
4949
},
50+
refresh(force) {
51+
if (!store.gotrue) {
52+
store.openModal("login");
53+
}
54+
return store.gotrue.currentUser().jwt(force);
55+
},
5056
init: options => {
5157
init(options);
5258
},

0 commit comments

Comments
 (0)