UNPKG

next-csrf

Version:

CSRF mitigation library for Next.js

8 lines (5 loc) 143 B
'use strict' module.exports = hashToSegments function hashToSegments (hash) { return [hash.slice(0, 2), hash.slice(2, 4), hash.slice(4)] }