graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

Enable setting auth type at request time.

Open Stubbs opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe. In my app I am integrating with a forum and I want to be able to let users auth, but I also want to use an admin set of credentials to create forum threads as the site admin. The site admin uses client credentials and the normal users uses implicit grants (both OAth) so I need to be able to use tokens for users, but basic auth for the admin user, but I can only switch the auth type with config.

Describe the solution you'd like Some kind of with function that mirrors withToken for auth ... withAuthScheme maybe.

Stubbs avatar Nov 27 '24 21:11 Stubbs