I'm a little confused about how nonces work with ajax requests. It looks like I'm supposed to use this: https://codex.wordpress.org/Function_Reference/check_ajax_referer
The request looks like this:
admin_url( 'admin-ajax.php') to separate out the request so it's a bit cleaner to read.
How would I use a nonce in this situation? Do I pass it within the
admin_url( 'admin-ajax.php') bit?