cmp-cc / vue-cookies

A simple Vue.js plugin for handling browser cookies
MIT License
408 stars 70 forks source link

My laravel api login token replacing `|` to `%` #87

Closed devbipu closed 1 year ago

devbipu commented 1 year ago

Hi, I'm trying to save my Laravel sanctum API login token to my cookies using this plugin but it's replacing this | character with % . Then it shows me an error when trying to get a user this token. How do you think I could fix it?

Orgianl token from Laravel sanctum: 72|7CRkhex7c4VnNdrXdTWPWXpmpmfBmKwJL5l51San32 After saving the token in browser cookies: 72%7CRkhex7c4VnNdrXdTWPWXpmpmfBmKwJL5l51San32

Can you tell me how to fix it?