From 8e3714028d952448c563f575e278ac4f5ed0ff3f Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 26 May 2024 12:15:08 +0200 Subject: [PATCH] fix --- _commands.md | 3 +++ login.go | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 _commands.md diff --git a/_commands.md b/_commands.md new file mode 100644 index 0000000..ef5508b --- /dev/null +++ b/_commands.md @@ -0,0 +1,3 @@ + +docker build -t mrbounty1/jade:jadeAlpha1 . +docker push mrbounty1/jade:jadeAlpha1 \ No newline at end of file diff --git a/login.go b/login.go index e8b4450..28d1afa 100644 --- a/login.go +++ b/login.go @@ -32,7 +32,7 @@ type TokenResponse struct { ProviderToken string `json:"provider_token"` } -const EDGEDB_AUTH_BASE_URL = "http://127.0.0.1:10700/db/main/ext/auth" +const EDGEDB_AUTH_BASE_URL = "https://jade-hackathon--mrbounty.c-40.i.aws.edgedb.cloud/db/main/ext/auth" func getGoogleUserProfile(providerToken string) (string, string, string) { // Fetch the discovery document @@ -143,7 +143,6 @@ func handleUiSignIn(c *fiber.Ctx) error { HTTPOnly: true, Path: "/", Secure: true, - SameSite: "Strict", }) return c.Redirect(fmt.Sprintf("%s/ui/signup?challenge=%s", EDGEDB_AUTH_BASE_URL, challenge), fiber.StatusTemporaryRedirect) @@ -185,7 +184,6 @@ func handleCallbackSignup(c *fiber.Ctx) error { HTTPOnly: true, Path: "/", Secure: true, - SameSite: "Strict", }) // Get the issuer of the identity