-
Notifications
You must be signed in to change notification settings - Fork 417
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #455 from zendesk/luis.use_public_sessions_endpoint
Use the public sessions endpoint URL instead of the internal one
- Loading branch information
Showing
2 changed files
with
2 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
// NOTE: This is a temporary handling of the CSRF token | ||
export async function fetchCsrfToken() { | ||
const response = await fetch("/hc/api/internal/csrf_token.json"); | ||
const response = await fetch("/api/v2/help_center/sessions.json"); | ||
const { current_session } = await response.json(); | ||
return current_session.csrf_token as string; | ||
} |