Skip to content

RefreshAuth type #222

@schlichtanders

Description

@schlichtanders

Hi there, I was using a RefreshAuth type for github which I build myself by patching GitHub.jl. It does the following:

  • behaves like a normal auth until an error is thrown
  • if this error is an authentication error, it tries to refresh the authentication token with the additionally given refresh token and tries again
  • if it still errors, the error is thrown as usual

This is very handy when dealing with short lived tokens.

Since Julia 1.10 it is unfortunately no longer possible to patch other packages that easily, and hence there is currently no way to implement this on top of GitHub, as one need changes to github_request.

It would be great if some logic like this could become part of GitHub.jl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions