tell me the best way to clean a token

Using AuthenticationHeaderValue.Parse(rawToken) should do the job, as it will automatically extract “Bearer” scheme (or any other scheme) and token from the raw value, removing the need to pass it explicitly.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top