Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access token missing when gen'ing ts types #1

Open
marqpdx opened this issue Dec 18, 2022 · 1 comment
Open

Access token missing when gen'ing ts types #1

marqpdx opened this issue Dec 18, 2022 · 1 comment

Comments

@marqpdx
Copy link

marqpdx commented Dec 18, 2022

In Section 4, i got an error when running supabase gen types typescript --project-id ...

Error: Access token not provided. Supply an access token by running supabase login or setting the SUPABASE_ACCESS_TOKEN environment variable.

Not sure if i missed a step. An running terminal outside of VS Code, but that shouldn't matter. I just copied the types from GH.

@NSDrowned
Copy link

NSDrowned commented Jan 5, 2023

Ran into the same problem. You need to generate an access token here: https://app.supabase.com/account/tokens, copy it and paste it when asked when running supabase login in the supabase cli (which you need to install first: https://supabase.com/docs/guides/resources/supabase-cli)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants