import { WordpressCoreService } from '../WordpressCoreService'; import { AUTH_ROUTES } from './auth.routes'; /** * Asks the site to sign in to Recomaze again (a refresh, else its shared * secret); the new token reaches the app on the next page load. * * @returns {Promise<{ renewed: boolean }>} Whether a new token was stored. */ export const renewSiteSignIn = (): Promise<{ renewed: boolean }> => WordpressCoreService.post(AUTH_ROUTES.RENEW);