PCMc
Member
I have my refresh token logic fully integrated into my overall routine with it tracking token expiration and automatic renewal.
Does anyone know of any reason to save the short refresh token that is provided in Step 4 along with the access token?
For my current implementation I'm saving the full step3 response/token information to a separate file so it can be read back in when needed to do Step 5/Step 4 to get new access token. I'm already saving the full token response from Step 4 to a file so I can reuse it any time I need to stop and restart the program.
I've debated replacing the unused Step 4 short access token in the Step 4 response with the Step 3 long refresh token. This way I'd have just a single token file saved that has everything, current access token, created and expires in timestamps, along with the long refresh token. Each time I refresh Step 4, I'd just transfer the Step 3 long access token over. The purist in me would say this is more efficient, eliminates one set of file read/writes and one file to access, but the other side of me says 'what difference does it make, don't mess with it' given it works.
Does anyone know of any reason to save the short refresh token that is provided in Step 4 along with the access token?
For my current implementation I'm saving the full step3 response/token information to a separate file so it can be read back in when needed to do Step 5/Step 4 to get new access token. I'm already saving the full token response from Step 4 to a file so I can reuse it any time I need to stop and restart the program.
I've debated replacing the unused Step 4 short access token in the Step 4 response with the Step 3 long refresh token. This way I'd have just a single token file saved that has everything, current access token, created and expires in timestamps, along with the long refresh token. Each time I refresh Step 4, I'd just transfer the Step 3 long access token over. The purist in me would say this is more efficient, eliminates one set of file read/writes and one file to access, but the other side of me says 'what difference does it make, don't mess with it' given it works.