public FrontEnd_JWTInfo Decode_FrontEnd_Token(string token) { FrontEnd_JWTInfo retVal = null; try { retVal = _decoder.DecodeToObject <FrontEnd_JWTInfo>(token, _secret, verify: true); } catch (Exception ex) { // Log in DB Console.WriteLine("Illegal base64 exception"); } return(retVal); }
public string Generate_FrontEnd_Token(FrontEnd_JWTInfo payload) { var token = _encoder.Encode(payload, _secret); return(token); }