K
Kinde8mo ago
wilson

Building Google non-Drive apps using Kinde

i am looking at the docs and scratching my head.... is there a way to use Google Access Tokens from Kinde users for other API stuff, like GMail? Or are only the integrations in Connected Apps supported right now? It would be great to be able to get a google api auth token from my kinde api to interact with Google and other backend services like Notion or Airtable.
7 Replies
Oli - Kinde
Oli - Kinde8mo ago
Hi @wilson, It sounds like you are looking for e.g. Connected Apps with the likes of Gmail, Notion, Airtable, etc... so your users can connect their e.g. Gmail account with your account. Is this right? If so, then yes the only Connected Apps at the moment are the ones shown in the attached screenshot. Are you able to explain more about what you are trying to achieve and your use-case for wanting "google api auth token from my kinde api to interact with Google and other backend services like Notion or Airtable."?
wilson
wilsonOP8mo ago
well as a start, i am building an app that reads your incoming email and applies labels based on some rules you define using LLMs. so i would use kinde to sign in with google, then use the access token to read email for notion and airtable it would be connecting their account to interact with their pages and databases
Oli - Kinde
Oli - Kinde7mo ago
Hi @wilson, Just circling back on your request here. Sounds like you are building an interesting product and I understand your use-case. So what 3rd party applications are you looking to connect with. I have the following list: - Gmail - Notion - Airtable Anything else?
wilson
wilsonOP7mo ago
i’ll integrate with anything you let me! other than those maybe outlook/onedrive? i ended up using supabase for the hack project because i got to intercept the auth callback and store the refresh tokens and do whatever i wanted with them - is that something you’d consider exposing in kinde?
Oli - Kinde
Oli - Kinde7mo ago
Hey @wilson, I have written down your request for connections apps for the following: - Gmail - Notion - Airtable - Outlook - Onedrive
i ended up using supabase for the hack project because i got to intercept the auth callback and store the refresh tokens and do whatever i wanted with them - is that something you’d consider exposing in kinde?
Are you able to explain more about what you did with Supabase, as my team and I are very much interested in building something similar in Kinde?
wilson
wilsonOP7mo ago
yeah totally, supabase is a great model to follow. basically i ended up using their exchangeCodeForSession method on my server side. it automatically sets the cookie for the supabase auth session, and lets me persist the refresh token on my server side before continuing the user auth flow. so it goes my app --> google auth --> supabase -pkce-> my app server -save session and token-> my app so that’s probably the key point is i used the pkce flow instead of implicit
Oli - Kinde
Oli - Kinde7mo ago
Hey @wilson, Thanks for explaining more about what you did in Supabase. Please don't hesitate to reach out if you have any other questions.
Want results from more Discord servers?
Add your server