1
0
forked from Kieran/snort

fix: created_at on refresh

This commit is contained in:
Kieran 2024-01-07 18:44:07 +00:00
parent b40a8cb9ad
commit 02e6d5c98c
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

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);
}
}