Untitled

 avatar
unknown
plain_text
a month ago
174 B
5
Indexable
const cookie = (res.headers['set-cookie'] as string[])
    .find(cookie => cookie.includes("refreshToken"))
    ?.match(new RegExp(`^${"refreshToken"}=(.+?);`⁠))
    ?.[1];
Leave a Comment