cli / oauth

A library for performing OAuth Device flow and Web application flow in Go client apps.
https://pkg.go.dev/github.com/cli/oauth
MIT License
460 stars 63 forks source link

Expose refresh token (used by GitHub Apps) #9

Closed swinton closed 2 years ago

swinton commented 3 years ago

GitHub Apps have the ability to expose refresh_tokens when identifying and authorizing users using either the device or web flow.

This refresh token is valid for 6 months and can be exchanged for a fresh access token (valid for 8 hours) and a new refresh token.

This PR exposes the refresh_token that is returned when using the OAuth flow with a GitHub App.

ghost commented 3 years ago

https://github.com/cli/oauth/pull/9#issue-689424458

ghost commented 3 years ago

https://github.com/cli/oauth/pull/9#issue-689424458

mislav commented 2 years ago

Thank you!

Grizzy1 commented 2 years ago

.