Skip to content

Commit 5783167

Browse files
committed
fix save token in manager
1 parent 108753d commit 5783167

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unoapi-cloud",
3-
"version": "1.25.1",
3+
"version": "1.25.2",
44
"description": "Unoapi Cloud",
55
"exports": "./dist/index.js",
66
"types": "./dist/index.d.ts",

public/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ <h5 class="modal-title" id="connectModalLabel">Conectar Sessão</h5>
484484
fetch(apiUrl + '/sessions', { headers })
485485
.then(response => {
486486
if (!response.ok) throw new Error("Token inválido ou falha na conexão.");
487+
localStorage.setItem(tokenKey, token);
487488
return response.json();
488489
})
489490
.then(resp => {

0 commit comments

Comments
 (0)