1cb2842d273d47732af9777799a1e3de.json 1.11 KB
Newer Older
1
{"ast":null,"code":"var _s = $RefreshSig$();\n\nimport { useOktaAuth } from '@okta/okta-react';\n\nconst useLogin = () => {\n  _s();\n\n  const {\n    authState,\n    oktaAuth\n  } = useOktaAuth();\n  oktaAuth.signInWithRedirect({\n    originalUri: '/home'\n  });\n};\n\n_s(useLogin, \"XFnfjrqktn2GIu+f3Siekv/ekaU=\", false, function () {\n  return [useOktaAuth];\n});\n\nexport default useLogin;","map":{"version":3,"sources":["C:/Users/Bruger/Desktop/Web-projects/pipit/client/src/util/useLogin.jsx"],"names":["useOktaAuth","useLogin","authState","oktaAuth","signInWithRedirect","originalUri"],"mappings":";;AAAA,SAASA,WAAT,QAA4B,kBAA5B;;AAEA,MAAMC,QAAQ,GAAG,MAAM;AAAA;;AACrB,QAAM;AAAEC,IAAAA,SAAF;AAAaC,IAAAA;AAAb,MAA0BH,WAAW,EAA3C;AACAG,EAAAA,QAAQ,CAACC,kBAAT,CAA4B;AAAEC,IAAAA,WAAW,EAAE;AAAf,GAA5B;AACD,CAHD;;GAAMJ,Q;UAC4BD,W;;;AAIlC,eAAeC,QAAf","sourcesContent":["import { useOktaAuth } from '@okta/okta-react';\r\n\r\nconst useLogin = () => {\r\n  const { authState, oktaAuth } = useOktaAuth();\r\n  oktaAuth.signInWithRedirect({ originalUri: '/home' })\r\n}\r\n\r\nexport default useLogin"]},"metadata":{},"sourceType":"module"}