A
A
AlkorIV2020-02-02 06:56:15
API
AlkorIV, 2020-02-02 06:56:15

Why does github personal token stop working?

Hello!
There was a problem, I made an application on react with graphql that uses api github, got Personal access tokens
like everything works, but after a while, the token stops working, the error Failed to load resource comes: the server responded with a status of 401 (Unauthorized) . If I create a new token, then everything works again, but I need to publish the project so that they can see it, but there will be embarrassment. How can I solve the problem so that the token does not fall off?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2020-02-02
@dimonchik2013

Oauth mate doesn't encourage long live tokens
are you a programmer or what? (with)

V
Vitaly Karasik, 2020-02-02
@vitaly_il1

AFAIK github Personal access tokens are perpetual, so I would check what is wrong with the application.
By the way, it is easy to check the token manually - use curl to access the GutHub API.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question