Skip to content

refreshes the token if it is invalid (read_azure_table)#120

Merged
tomjemmett merged 1 commit into
mainfrom
add_token_refresh_to_read_azure_table
May 15, 2026
Merged

refreshes the token if it is invalid (read_azure_table)#120
tomjemmett merged 1 commit into
mainfrom
add_token_refresh_to_read_azure_table

Conversation

@tomjemmett

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings May 14, 2026 09:58
@tomjemmett tomjemmett requested a review from francisbarton as a code owner May 14, 2026 09:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Azure Table reads to refresh an invalid authentication token before constructing the HTTP request, helping avoid failed requests caused by expired cached tokens.

Changes:

  • Adds a token validation check in read_azure_table().
  • Refreshes the token before using its bearer access token when validation fails.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@francisbarton francisbarton left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for now but I might look for a more generic solution to token refreshing to be used across the package in future. Thanks!

@tomjemmett tomjemmett merged commit 2b64f66 into main May 15, 2026
5 checks passed
@tomjemmett tomjemmett deleted the add_token_refresh_to_read_azure_table branch May 15, 2026 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants