@rudderjs/auth 5.0.1 → 5.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import '@/index.css'
2
2
  import { useState } from 'react'
3
- import { getCsrfToken } from '@rudderjs/middleware'
3
+ import { getCsrfToken } from '@rudderjs/middleware/client'
4
4
 
5
5
  // URL this view is served at — see Login.tsx for rationale.
6
6
  export const route = '/forgot-password'
@@ -1,7 +1,7 @@
1
1
  import '@/index.css'
2
2
  import { useState } from 'react'
3
3
  import { navigate } from 'vike/client/router'
4
- import { getCsrfToken } from '@rudderjs/middleware'
4
+ import { getCsrfToken } from '@rudderjs/middleware/client'
5
5
 
6
6
  // URL this view is served at — MUST match the controller route registered
7
7
  // by registerAuthRoutes() in the consumer project. If you override
@@ -1,7 +1,7 @@
1
1
  import '@/index.css'
2
2
  import { useState } from 'react'
3
3
  import { navigate } from 'vike/client/router'
4
- import { getCsrfToken } from '@rudderjs/middleware'
4
+ import { getCsrfToken } from '@rudderjs/middleware/client'
5
5
 
6
6
  // URL this view is served at — see Login.tsx for rationale.
7
7
  export const route = '/register'
@@ -1,6 +1,6 @@
1
1
  import '@/index.css'
2
2
  import { useState, useEffect } from 'react'
3
- import { getCsrfToken } from '@rudderjs/middleware'
3
+ import { getCsrfToken } from '@rudderjs/middleware/client'
4
4
 
5
5
  // URL this view is served at — see Login.tsx for rationale.
6
6
  export const route = '/reset-password'