🎨 Reformat code for consistent indentation and improve readability
This commit is contained in:
@@ -14,12 +14,12 @@
|
||||
* ```javascript
|
||||
* import { useChallongeClientCredentials } from '@/composables/useChallongeClientCredentials'
|
||||
*
|
||||
* const {
|
||||
* isAuthenticated,
|
||||
* accessToken,
|
||||
* authenticate,
|
||||
* const {
|
||||
* isAuthenticated,
|
||||
* accessToken,
|
||||
* authenticate,
|
||||
* logout,
|
||||
* saveCredentials
|
||||
* saveCredentials
|
||||
* } = useChallongeClientCredentials()
|
||||
*
|
||||
* // Save client credentials (one time)
|
||||
@@ -54,7 +54,10 @@ try {
|
||||
tokenData.value = JSON.parse(storedToken);
|
||||
|
||||
// Check if token is expired
|
||||
if (tokenData.value.expires_at && Date.now() >= tokenData.value.expires_at) {
|
||||
if (
|
||||
tokenData.value.expires_at &&
|
||||
Date.now() >= tokenData.value.expires_at
|
||||
) {
|
||||
console.log('🔄 Client credentials token expired, will need to refresh');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user