Skip to content

Q: how to deal with token refresh? #739

Open
@steffenschumacher

Description

@steffenschumacher

We have an API which integrates with Sharepoint, where ideally we don't obtain tokens for each API call.
But from what I can tell, there are no infra to handle expiring tokens/refreshing them.
Should I:

  • just accept this, or
  • refresh on expiry or
  • do a PR for handing refresh or
  • did miss something, and handling of this is handled somewhere?

PS. I'm basing this on this from TokenResponse:

    def is_valid(self):
        return self.accessToken is not None and self.tokenType == 'Bearer'

Seems not to check anything RE expiry

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions