Patrick Lima
Explore posts from serversBABetter Auth
•Created by Patrick Lima on 3/18/2025 in #help
Access token from Social Login
I am migrating from Supabase. Everything works well until I tried to find out how can I get the provider token (from Google) after a successful login. I am using more roles on login and then after I want to use the token to authenticate to some Gmail APIs.
I tried to get on
authClient.useSession
and authClient.listAccounts()
. Is there a way?
I am using Hono on backend and React with Vite on frontend.
In Supabase you could get from their session. More info about it and specifically what I want: https://supabase.com/docs/guides/auth/social-login#provider-tokens6 replies
CDCloudflare Developers
•Created by Patrick Lima on 9/10/2024 in #pages-help
Turborepo with GitHub integration
* Site: https://memolens.app
* AccountId:
d3d0378e716fdb8eec266de86fa0e960
* Deployment ID: 81ac55f7-c5c8-4627-b9a4-d5b741c37ee6
I am trying to deploy a Turborepo package (Next.js) with a GitHub integration. When I do a local deploy npx @cloudflare/next-on-pages
everything works fine, when I do by GitHub integration it fails saying In a non-interactive environment, it's necessary to set a CLOUDFLARE_API_TOKEN environment variable for wrangler to work
.
I tried putting a secret on Dashboard and doing with Wrangler CLI, but it never finds this CLOUDFLARE_API_TOKEN
. Am I doing something wrong?
The configuration for the deploy is:
Build command: npm run deploy
(it targets a command on apps/web, using Turborepo
filter, doing a npm run build
and npx @cloudflare/next-on-pages
)
Build output directory: /.vercel/output/static
Root directory: /
2 replies