var searchIndex = {}; searchIndex["jsonwebtoken"] = {"doc":"Create and parses JWT (JSON Web Tokens)","items":[[3,"Header","jsonwebtoken","A basic JWT header part, the alg is automatically filled for use\nIt's missing things like the kid but that's for later",null,null],[4,"Algorithm","","The algorithms supported for signing/verifying",null,null],[13,"HS256","","",0,null],[13,"HS384","","",0,null],[13,"HS512","","",0,null],[5,"encode","","Encode the claims passed and sign the payload using the algorithm and the secret",null,{"inputs":[{"name":"t"},{"name":"string"},{"name":"algorithm"}],"output":{"name":"result"}}],[5,"decode","","Decode a token into a Claims struct\nIf the token or its signature is invalid, it will return an error",null,{"inputs":[{"name":"string"},{"name":"string"},{"name":"algorithm"}],"output":{"name":"result"}}],[0,"errors","","",null,null],[4,"Error","jsonwebtoken::errors","All the errors we can encounter while signing/verifying tokens\nand a couple of custom one for when the token we are trying\nto verify is invalid",null,null],[13,"EncodeJSON","","",1,null],[13,"DecodeBase64","","",1,null],[13,"DecodeJSON","","",1,null],[13,"Utf8","","",1,null],[13,"InvalidToken","","",1,null],[13,"InvalidSignature","","",1,null],[13,"WrongAlgorithmHeader","","",1,null],[11,"fmt","","",1,null],[11,"from","","",1,{"inputs":[{"name":"encodererror"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"frombase64error"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"decodererror"}],"output":{"name":"error"}}],[11,"from","","",1,{"inputs":[{"name":"fromutf8error"}],"output":{"name":"error"}}],[8,"Part","jsonwebtoken","A part of the JWT: header and claims specifically\nAllows converting from/to struct with base64",null,null],[10,"from_base64","","",2,{"inputs":[{"name":"string"}],"output":{"name":"result"}}],[10,"to_base64","","",2,null],[11,"encode","","",0,null],[11,"decode","","",0,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"clone","","",0,null],[11,"eq","","",0,null],[11,"fmt","","",0,null],[11,"decode","","",3,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"encode","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"new","","",3,{"inputs":[{"name":"algorithm"}],"output":{"name":"header"}}]],"paths":[[4,"Algorithm"],[4,"Error"],[8,"Part"],[3,"Header"]]}; initSearch(searchIndex);