Add token expiry (bump minor)
Temp remove genuine patch for unity product name Exporting and importing tokens (not tested very well) Insecure HTTP warning on auth
This commit is contained in:
@@ -77,6 +77,10 @@ namespace undead_universal_patch_il2cpp.Patches
|
||||
{
|
||||
if (newUri.PathAndQuery.Contains(header))
|
||||
{
|
||||
// refresh the token if it expired
|
||||
// this is somewhat inefficient, but we don't hook into many requests (see below) so it should be fine
|
||||
GalvanicWebAuth.TokenExpiry();
|
||||
|
||||
Type httpRequestType = request.GetType();
|
||||
MethodInfo addHeaderMethod = httpRequestType.GetMethod("AddHeader");
|
||||
addHeaderMethod.Invoke(request, ["GalvanicAuth", GalvanicWebAuth.Token]);
|
||||
|
||||
Reference in New Issue
Block a user