-
Hello When I load the authentication information from the file, generally speaking, it has expired. How do I re-authenticate. I didn't find the corresponding api. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi. By default my package make use of the message authentication code (MAC) to authenticate the client to the Audible server. Using MAC for authorization does not need an access token. A valid token is therefore unimportant. The only point where an valid access token matters is on deregistration part. But But to answer your question. To manually update an access token you can call |
Beta Was this translation helpful? Give feedback.
Hi.
By default my package make use of the message authentication code (MAC) to authenticate the client to the Audible server. Using MAC for authorization does not need an access token. A valid token is therefore unimportant.
The only point where an valid access token matters is on deregistration part. But
auth.deregister_device()
will refresh the access token automatically before unregister a device.But to answer your question. To manually update an access token you can call
auth.refresh_access_token()
. This will update the token only if they are expired. To force a refresh callauth.refresh_access_token(force=True)
.