Untitled
Anonymous
plain_text
12/30/2024 10:27 PM
232 B
17
Indexable
const cookie = (res.headers['set-cookie'] as string[])
.find(cookie => cookie.includes("refreshToken"))
?.match(new RegExp(`^${"refreshToken"}=(.+?);`))
?.[1];Editor is loading...
Leave a Comment