Skip to content

How do I authenticate users before the LLM calls? #444

Discussion options

You must be logged in to vote

You can authorize a tool (or toolkit) directly (https://docs.arcade.dev/home/auth/auth-tool-calling#authorize-a-tool-directly) at the beginning of your script/session, and then carry on using the tool. You can then keep executing the tool without worries until the token expires, and calling the auth again should refresh the token automatically (no new user auth flow needed)

Note that you have to authorize one provider at a time. So instead of making one auth call per tool, you can collect all the required scopes, and then do a single call to client.auth.start (here's the relevant part of the docs: https://docs.arcade.dev/home/auth/call-third-party-apis-directly#initiate-an-authorization-r…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by torresmateo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant