Add getTokenArray() for unit testing endpoints
Add getTokenArray() for unit testing endpoints

This returns the array that would be sent from the client-side inputs. This is useful for testing CSRF prevention in endpoints without a headless browser.

SimpleUpdates/anti-csrf,jorik041/anti-csrf,resonantcore/anti-csrf,paragonie/anti-csrf,SimpleUpdates/anti-csrf,jorik041/anti-csrf,paragonie/anti-csrf,resonantcore/anti-csrf