Skip to content

Commit

Permalink
fix typo in deserialization
Browse files Browse the repository at this point in the history
  • Loading branch information
tmountjr committed Apr 24, 2024
1 parent 1525fa3 commit 53f2286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ECToken.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class ECToken {
serialize() {
let token = Object.keys(this.values).reduce((acc, curr) => {
if (curr === 'ec_expire' && this.values.ec_expire && this.values.ec_expire > 0) {
acc.push(`ex_expire=${this.values.ec_expire}`)
acc.push(`ec_expire=${this.values.ec_expire}`)
} else {
if (this.values[curr].length) {
acc.push(`${curr}=${this.values[curr].join(',')}`)
Expand Down Expand Up @@ -164,4 +164,4 @@ module.exports = {
ECToken,
encrypt,
decrypt
}
}

0 comments on commit 53f2286

Please sign in to comment.