update to lastest zig master
parent
264fa944f1
commit
1e8ffb6240
2
jwt.zig
2
jwt.zig
|
@ -179,7 +179,7 @@ pub fn validateMessage(allocator: *std.mem.Allocator, tokenText: []const u8, sig
|
|||
// validating a JWS. Let the Message be the result of base64url
|
||||
// decoding the JWS Payload.
|
||||
.JWS => {
|
||||
var section_iter = std.mem.split(tokenText, ".");
|
||||
var section_iter = std.mem.split(u8, tokenText, ".");
|
||||
std.debug.assert(section_iter.next() != null);
|
||||
const payload_base64 = section_iter.next().?;
|
||||
const signature_base64 = section_iter.rest();
|
||||
|
|
Loading…
Reference in New Issue