Skip to content

How to add bearer token that may need updating to auth header? #6908

Answered by Dreamsorcerer
faph asked this question in Q&A
Discussion options

You must be logged in to vote

Just a quick guess from looking at the documentation. The headers appear to be accessible on the ClientSession: https://docs.aiohttp.org/en/stable/client_reference.html#aiohttp.ClientSession.headers

So, just update the header value there?

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Dreamsorcerer
Comment options

@faph
Comment options

@Dreamsorcerer
Comment options

@faph
Comment options

@faph
Comment options

Answer selected by faph
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants