mirror of
https://github.com/arun11299/cpp-jwt.git
synced 2025-05-15 01:08:31 +00:00
Added decode error codes and exceptions
This commit is contained in:
parent
234411a550
commit
9e69389caf
7 changed files with 131 additions and 18 deletions
|
@ -282,7 +282,8 @@ std::string base64_uri_decode(const char* data, size_t len)
|
|||
|
||||
size_t i = 0;
|
||||
|
||||
for (; i < len; ++i) {
|
||||
for (; i < len; ++i)
|
||||
{
|
||||
switch (data[i]) {
|
||||
case '-':
|
||||
uri_dec[i] = '+';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue