Code Monkey home page Code Monkey logo

auth-oauth-device.js's People

Contributors

gr2m avatar kfcampbell avatar l1qu1d avatar nickfloyd avatar octokitbot avatar oscard0m avatar renovate[bot] avatar wolfy1339 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

auth-oauth-device.js's Issues

[BUG]: Refresh Token is ignored

What happened?

When I get the GitHub APP user authentication object having refresh-token and use it with createOAuthDeviceAuth strategy in Octokit Client, Octokit client never refreshes authentication.
From the looks of it, this library does not seem to handle Refresh Token properly.
I am trying to authenticate a user using Device Flow, which does not require a Client Secret, for a client-side product, but I am having to go through the authorization process again, even though the Refresh Token is still valid.

Versions

Octokit v3.0.0 Deno v1.35.1

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Location: package.json
Error type: The renovate configuration file contains some invalid settings
Message: Invalid configuration option: @pika/pack, Invalid configuration option: author, Invalid configuration option: jest, Invalid configuration option: keywords, Invalid configuration option: license, Invalid configuration option: name, Invalid configuration option: packageRules[0].@octokit/oauth-methods, Invalid configuration option: packageRules[0].@octokit/request, Invalid configuration option: packageRules[0].@octokit/types, Invalid configuration option: packageRules[0].universal-user-agent, Invalid configuration option: packageRules[1].@octokit/tsconfig, Invalid configuration option: packageRules[1].@pika/pack, Invalid configuration option: packageRules[1].@pika/plugin-build-node, Invalid configuration option: packageRules[1].@pika/plugin-build-web, Invalid configuration option: packageRules[1].@pika/plugin-ts-standard-pkg, Invalid configuration option: packageRules[1].@types/jest, Invalid configuration option: packageRules[1].@types/node, Invalid configuration option: packageRules[1].fetch-mock, Invalid configuration option: packageRules[1].jest, Invalid configuration option: packageRules[1].prettier, Invalid configuration option: packageRules[1].semantic-release, Invalid configuration option: packageRules[1].semantic-release-plugin-update-version-in-files, Invalid configuration option: packageRules[1].ts-jest, Invalid configuration option: packageRules[1].typescript, Invalid configuration option: publishConfig, Invalid configuration option: release, Invalid configuration option: renovate, Invalid configuration option: scripts, Invalid configuration option: version

add refreshToken-related properties to authentication object

What’s missing?

GitHub is supporting Refreshing user-to-server access tokens. In its current form, the Authentication object does not include these properties.

Why?

As an owner of a GitHub App with expiring user-to-server tokens enabled, I want to be able to refresh an expired token.

Alternatives you tried

There are no viable alternatives. I'd either need to fork this repository and create an alternative version, or I would need to implement a custom request hook only for this purpose.

[BUG]: invalid type defintion: GitHubAppAuthenticationWithExpiration

What happened?

Using this from deno, GitHubAppAuthenticationWithExpiration is linked to OAuthMethodsTypes.GitHubAppAuthentication.
https://github.com/octokit/auth-oauth-device.js/blob/b0e161f90b120bef24486c6c7f344b5a8f27b6f9/src/types.ts#L73C4-L76

But it should be linked to OAuthMethodsTypes.GitHubAppAuthenticationWithExpiration OAuthMethodsTypes.GitHubAppAuthenticationWithRefreshToken.

Versions

auth-oauth-device.js v6.0.0

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.