From 602a964a0b754e79ec23e19f0701c84a4b0454c6 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Fri, 9 Feb 2024 15:47:53 +0000 Subject: [PATCH] Rewrite test client token refreshing --- go.mod | 1 - go.sum | 2 -- test-client/index.html | 2 +- test-client/pop2.js | 40 ++++++++++++++++++++++++++++------------ 4 files changed, 29 insertions(+), 16 deletions(-) diff --git a/go.mod b/go.mod index 5e74698..bfd0121 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,6 @@ require ( github.com/google/uuid v1.6.0 github.com/julienschmidt/httprouter v1.3.0 github.com/mattn/go-sqlite3 v1.14.22 - github.com/rs/cors v1.10.1 github.com/stretchr/testify v1.8.4 golang.org/x/oauth2 v0.16.0 ) diff --git a/go.sum b/go.sum index 14871f0..3aa6a67 100644 --- a/go.sum +++ b/go.sum @@ -100,8 +100,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M= github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA= -github.com/rs/cors v1.10.1 h1:L0uuZVXIKlI1SShY2nhFfo44TYvDPQ1w4oFkUJNfhyo= -github.com/rs/cors v1.10.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZKJ48R1S7H23Ji7oFO5Bw= github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0= github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM= diff --git a/test-client/index.html b/test-client/index.html index adc7413..d57203a 100644 --- a/test-client/index.html +++ b/test-client/index.html @@ -6,7 +6,7 @@