You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are two ways to turn off Authorization: Bearer tokens: SessionConfig(use_bearer_token=False), or leaving "bearer" out of token_source_priority. _read_header_token checks both. Once #75 makes token_source_priority the single list of token sources (header, bearer, cookie), the boolean only duplicates it.
Plan
0.3.9:SessionConfig emits a DeprecationWarning when use_bearer_token is passed explicitly, True or False. The message names the replacement:
use_bearer_token=True: drop the argument, since it is the default.
Problem
There are two ways to turn off
Authorization: Bearertokens:SessionConfig(use_bearer_token=False), or leaving"bearer"out oftoken_source_priority._read_header_tokenchecks both. Once #75 makestoken_source_prioritythe single list of token sources (header, bearer, cookie), the boolean only duplicates it.Plan
SessionConfigemits aDeprecationWarningwhenuse_bearer_tokenis passed explicitly,TrueorFalse. The message names the replacement:use_bearer_token=True: drop the argument, since it is the default.use_bearer_token=False: leave"bearer"out oftoken_source_priority, keeping"cookie"in the list (see Allow cookies in token_source_priority #75)."bearer"is intoken_source_priority.docs/SESSION.mdand the zh-TW mirrors.