Sometimes we are getting special characters in token, like "+", when i try to parse the URL and get value of token, the browser is parsing it as " "(space), because of it the API is giving 401 at times, can we exclude such special characters where browser can't parse?
example refresh token:
dzbiM0+7VvjNQQ8wBf9h4rtrSiyMiAMPFLxTXXulX0iBzTHtlwQNEY9WgcxzZcSy9zAuqlXtF3KZvLNQVtYJXJ35JvkxIJ1QfCoYcDx0HZdNXVZrxfI/azFA//BIImvG/Gq495Sv9j69Ta+2zz5keImgwUOUVuAzrBz8PoFmRpTAYee1n3qgVTOFjdP+lmlWtvOkrcu8n8tLbFQ6EHpZULjwhvMEkykt0EtjLrs7L7FoZRkFENqIZE8ijoZbwfo3du0f7V90tcOAHzt5KGmo.1a7a994b9365ac115cf45794dc70399194701904035bdc274369fe330a259e18.V2
r
rp_st
03/06/2024, 6:07 AM
hey @anurag06557 i don't quite understand what you are doing. A detailed writeup would help
a
anurag06557
03/06/2024, 6:11 AM
we are trying to call the refresh API manually by passing the refresh toke
r
rp_st
03/06/2024, 6:12 AM
whats ur setup? Using header based auth, or cookie based? Which SDK and versions? Why do you need to call the refresh api manually given that our sdk does that for you? Please give me a detailed writeup, otherwise no one will help.
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).