Skip to content

Commit

Permalink
Merge branch 'hotfix/v1.0.4' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
kuyoonjo committed Apr 2, 2018
2 parents e7be21b + 18b2cc8 commit 40155d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yca/auth",
"version": "1.0.3",
"version": "1.0.4",
"repository": {
"type": "git",
"url": "https://github.com/yc-angular/auth.git"
Expand Down
4 changes: 4 additions & 0 deletions src/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ export class Auth {
this.readStorage();
}

ready() {
return this.readStorage();
}

private async readStorage() {
const jwt = await this.__as.get('__jwt');
if(jwt && jwt !== 'null') {
Expand Down

0 comments on commit 40155d3

Please sign in to comment.