Appendix | Yext Hitchhikers Platform

If you made it this far, congratulations! You’ve successfully implemented JWT.

Additional Information

The runtime configuration in the theme allows you to pass values to the Search experience at runtime. It’s an empty object by default, const RuntimeConfig = {}. In the case of JWT, our runtime config becomes:

const RuntimeConfig = {
    "token": "[[token]]"
}

At any point, calling AnswersExperienceFrame.runtimeConfig.get('token'); will return the current value of the JWT. AnswersExperienceFrame.runtimeConfig.getAll(); will return the entire runtime config object.

Feedback