πŸ‘‹, does anyone know of a tutorial that shows how ...
# help
n
πŸ‘‹, does anyone know of a tutorial that shows how to use the RESTful client with (bearer token) authorization? And how to deal with the token securely? Thanks and sorry if that’s a stupid question.
s
Inside of your Supabase dashboard, if you go to the API menu, then select Authentication from the menu and clikc on the Bash tab in the code example part.
n
if I understand your answer correctly it deals with ingoing API calls to my supabase database. My question is concerned with outgoing API calls from the database functions. I had a look at the tutorial with the kanye west quotes, and my question ist now, what would I do if that kanye quotes API would require autorization via bearer token. And how to store that token securely like in an environment variable or so...
s
Ah I see what you mean now, you could store it inside a db table since you are already working from inside the db. If you don't want to store the raw bearer token you could use something like pgsodium to encrypt it, but not sure you need to go that far.
n
πŸ‘