UNPKG
nuxt-csurf
Version:
beta (1.3.0-beta.1)
latest (1.6.5)
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.2
1.3.1
1.3.0
1.3.0-beta.1
1.2.0
1.1.0
1.0.1
1.0.0
Nuxt Cross-Site Request Forgery (CSRF) Prevention
github.com/Morgbn/nuxt-csurf
Morgbn/nuxt-csurf
nuxt-csurf
/
dist
/
runtime
/
plugin.d.ts
14 lines
(13 loc)
•
277 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
type
$Fetch }
from
'ofetch'
;
declare
const
_default
:
any
;
export
default
_default;
declare
module
'#app'
{
interface
NuxtApp
{
$csrfFetch
: $Fetch; } }
declare
module
'vue'
{
interface
ComponentCustomProperties
{
$csrfFetch
: $Fetch; } }