Skip to main content
josula
Conversationalist
March 23, 2024
Solved

Google Sign In in Front App

  • March 23, 2024
  • 24 replies
  • 1152 views

We Are trying to implement a Plugin using the Google Sign Button. The problem is however that the sign does not work because Google is trying to open a new window. That of course doesn't work in the plug-in within the Front app. 

 

Hence, my question is if anyone else has built such an integration and how did they manage to integrate Google sign in within the Front app plugin?

Best answer by xdmnl

@jason’s code sample works because of this specific line that sets partitioned cookies as recommended by our article on Replacing third-party cookies in Front plugins.
This is the recommended solution because it is completely transparent for the end-user.

Alternatively, your plugin can use the Storage Access API to ask the user permission to use third-party cookies.

24 replies

josula
josulaAuthor
Conversationalist
April 25, 2024

Ok this was wild but I got it now: The problem was with security of local vs prod and the including __Secure- prefix. I am setting an env in prod now like so:

 

const productionPrefix process.env.AUTH_REQUIREMENT === "PRODUCTION" ? "__Secure-" : "";

And then my cookies like so:

 

cookies: {

sessionToken: {

name: `${productionPrefix}next-auth.session-token`,

options: cookieOptions,

},

}

 

This finally got it to work in both prod as well as local. 

 

It should be alright security wise I guess since it is all server side.

jason
Fronteer
April 25, 2024

Great to hear you got it working! 🚀

limwelywrc
Conversationalist
November 14, 2025

Hi, is there anyway i can connect my spreadsheet into Front? By anychance possible?

Maxime Haudebert
Fronteer
November 18, 2025

Hi, is there anyway i can connect my spreadsheet into Front? By anychance possible?

Hi there ​@limwelywrc! Would it be possible to create a new thread regarding this topic, and share more details about what you’re trying to achieve? We’d love to help!

Thanks