django oauth toolkit permanent access token

To create a permanent access token using Django OAuth Toolkit, follow these steps:

  1. Create a new application using the Django admin interface or API endpoint.
  2. Retrieve the client ID and client secret generated for the new application.
  3. Use the client ID and client secret to obtain a temporary access token.
  4. Send a POST request to the token endpoint with the client ID, client secret, grant type, and scope to exchange the temporary access token for a permanent one.
  5. Receive the permanent access token in the response from the token endpoint.

These steps will allow you to set up a permanent access token using Django OAuth Toolkit.