{"version":3,"file":"static/chunks/4546.f56505e8a2c8b9eb.js","mappings":"qdGIO,SAASA,EAAUC,CAAoB,EAC5CC,EAAAA,CAAIA,CAACF,SAAS,CACZC,EAAOE,0BAA0B,CACjCF,EAAOG,6BAA6B,CACpCH,EAAOI,0BAA0B,CAErC,CAEO,SAASC,EAAOC,CAAa,CAAEC,CAAgB,EACpD,OAAON,EAAAA,CAAIA,CAACI,MAAM,CAACC,EAAOC,EAC5B,CAEO,SAASC,IACd,OAAOP,EAAAA,CAAIA,CAACQ,OAAO,EACrB,CAEO,SAASC,IACd,OAAOT,EAAAA,CAAIA,CAACU,QAAQ,CAACC,UAAU,EACjC,CAEO,SAASC,IACd,OAAOZ,EAAAA,CAAIA,CAACU,QAAQ,CAACG,UAAU,EACjC,CAEO,SAASC,IACd,OAAOd,EAAAA,CAAIA,CAACe,YAAY,EAC1B,CAEO,SAASC,EAAyBX,CAAa,EACpD,OAAOL,EAAAA,CAAIA,CAACiB,QAAQ,CAACZ,EACvB,CAEO,SAASa,EAAcC,CAI7B,EACC,GAAM,CAAEC,SAAAA,CAAQ,CAAEC,KAAAA,CAAI,CAAEf,SAAAA,CAAQ,CAAE,CAAGa,EAErC,OAAOnB,EAAAA,CAAIA,CAACsB,UAAU,CAACF,EAAUC,EAAMf,EACzC,oGCxCO,SAASiB,IACd,IAAMxB,EAASyB,CAAAA,EAAAA,EAAAA,CAAAA,IAEfC,EAAAA,SAAqB,CAAC1B,EACxB","sources":["webpack://_N_E/ignored|/codebuild/output/src4195573761/src/website/node_modules/@aws-amplify/auth/node_modules/amazon-cognito-identity-js/es/utils|crypto","webpack://_N_E/ignored|/codebuild/output/src4195573761/src/website/node_modules/@aws-amplify/datastore/node_modules/amazon-cognito-identity-js/es/utils|crypto","webpack://_N_E/ignored|/codebuild/output/src4195573761/src/website/node_modules/crypto-js|crypto","webpack://_N_E/./lib/authentication/helpers.ts","webpack://_N_E/./lib/authentication/init.ts"],"sourcesContent":["/* (ignored) */","/* (ignored) */","/* (ignored) */","import Auth from '@industriousoffice/member-portal-auth';\n\nimport { ServerConfig } from '@/utils/config';\n\nexport function configure(config: ServerConfig) {\n Auth.configure(\n config.NEXT_PUBLIC_COGNITO_REGION,\n config.NEXT_PUBLIC_COGNITO_USER_POOL,\n config.NEXT_PUBLIC_COGNITO_APP_ID\n );\n}\n\nexport function signIn(email: string, password: string) {\n return Auth.signIn(email, password);\n}\n\nexport function logout() {\n return Auth.signOut();\n}\n\nexport function checkUserToken() {\n return Auth.useToken.checkToken();\n}\n\nexport function getUserToken() {\n return Auth.useToken.getIdToken();\n}\n\nexport function refreshUserToken() {\n return Auth.refreshToken();\n}\n\nexport function sendEmailToResetPassword(email: string) {\n return Auth.forgetPW(email);\n}\n\nexport function resetPassword(params: {\n username: string;\n code: string;\n password: string;\n}) {\n const { username, code, password } = params;\n\n return Auth.submitCode(username, code, password);\n}\n","import { getServerConfig } from '@/utils/config';\n\nimport * as authHelpers from './helpers';\n\nexport function initAuth() {\n const config = getServerConfig();\n\n authHelpers.configure(config);\n}\n"],"names":["configure","config","Auth","NEXT_PUBLIC_COGNITO_REGION","NEXT_PUBLIC_COGNITO_USER_POOL","NEXT_PUBLIC_COGNITO_APP_ID","signIn","email","password","logout","signOut","checkUserToken","useToken","checkToken","getUserToken","getIdToken","refreshUserToken","refreshToken","sendEmailToResetPassword","forgetPW","resetPassword","params","username","code","submitCode","initAuth","getServerConfig","authHelpers"],"sourceRoot":""}