Good afternoon! I set up work with api, I get access_token, but after 24 hours it becomes invalid and I need to update it somehow, I have a refresh_token. Can you please tell me which model and which end point in the api is responsible for this? I did not find it in the documentation
As mentioned on https://diaspora.github.io/api-documentation/authentication.html Diaspora implements OpenID Connect, token refresh is described in https://openid.net/specs/openid-connect-core-1_0.html#RefreshTokens
Note that proper discovery of the token endpoint should happen through https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderConfig
These days you should be able to find a client library implementations for OpenID Connect for pretty much any environment and I would highly recommend using these over rolling your own. We consider any incompatibilities with a widely used OpenID Connect client implementation as a bug.
Alternatively configuring an OAuth2.0 client with the data from the provider configuration response should also work reasonably well and handle things like token refresh (semi-)transparently for you.