I am using the following package: https://pub.dev/packages/spotify_sdk
This package provides the method getAuthenticationToken which returns an access token to spotify to be used with my server to retrieve some spotify's data related with the user:
authenticationToken = await SpotifySdk.getAuthenticationToken(
clientId: dotenv.get('SPOTIFY_CLIENT_ID'),
redirectUrl: dotenv.get('SPOTIFY_AUTH_REDIRECT_URL'),
scope: 'user-read-email, user-top-read',
);
However, this token expires after 1 hours. Is there any way, without front end code (only server side), to refresh this token? What are my options?