Create a Supabase JWT for testing FTC applications. Currently it only accepts email/password login.
Update the configs/config.project_name.yml
file at the root of this repository. You'll need to enter:
APP_NAME
- The name of the FTC project (i.e. BeBooked)
SUPABASE_PROJECT_URL
- The Supbase project URL found in the Supabase Dashboard
SUPABASE_API_KEY
- The Supabase service role api key (not to be confused with public)
Example (Culture Forward project):
Filename: config.cultureforward.yml
APP_NAME: Culture Forward
SUPABASE_PROJECT_URL: https://auth.cultureforward.ai
SUPABASE_API_KEY: <api-key-here>
Using the Supabase project url and api key, this application will attempt to generate a valid JWT for testing the API via Postman or anything else.
You will be prompted to enter the email
and password
of user. If the email/password combination is incorrect it will not
produce a valid JWT.
./executables/apple-silicon/supabase-jwt.ftc cultureforward
or
./executables/windows-86/supabase-jwt.ftc.exe cultureforward
Follow on-screen instructions
You can follow these steps to compile and execute for Windows.
Remember to change appName
to the name of the app you're
compiling for.
Note: You MUST
have the latest version of Go installed
- Ensure you've updated the config.yml file (follow steps above)
- go mod tidy
- Compile:
go build -o executables/windows-x86/supabase-jwt.ftc.exe ./cmd/supabase-jwt
- Execute:
./executables/windows-x86/supabase-jwt.ftc.exe