({ token, expires }: TokenResponse)
| 71 | |
| 72 | // Add a token to the END of the stack |
| 73 | add({ token, expires }: TokenResponse) { |
| 74 | const t = this.tokens; |
| 75 | t.push({ token, expires }); |
| 76 | localStorage.setItem(TOKEN_KEY, JSON.stringify(t)); |
| 77 | } |
| 78 | |
| 79 | // Drop a token from the END of the stack |
| 80 | drop() { |
no outgoing calls
no test coverage detected