fix: created_at on refresh

This commit is contained in:
2024-01-07 18:44:07 +00:00
parent b40a8cb9ad
commit 02e6d5c98c

View File

@ -142,7 +142,10 @@ export default class AlbyWallet implements LNWallet {
});
const json = await req.json();
if (req.ok) {
this.#token = json as OAuthToken;
this.#token = {
...(json as OAuthToken),
created_at: unixNow()
};
this.onChange(this.#token);
}
}