add option to create location in all subsequent months
- Added toggle in LocationEditForm for adding locations to future months (disabled by default) - Modified updateOrAddLocation action to support batch creation across subsequent months - Only creates locations in months where no location with same name exists - Added translations for toggle text in Croatian and English - Fixed unused variable warning in deleteLocationById - Improved auth.ts development comments for clarity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -7,17 +7,31 @@ import { defaultLocale } from '../i18n';
|
||||
|
||||
export const myAuth = () => {
|
||||
|
||||
// Ovo koristim u developmentu
|
||||
/**
|
||||
|
||||
// const session:Session = {
|
||||
// user: {
|
||||
// id: "109754742613069927799",
|
||||
// name: "Nikola Derežić",
|
||||
// },
|
||||
// expires: "123",
|
||||
// };
|
||||
Google auth does not work in development environment
|
||||
- this is a hack to make it work in development environment
|
||||
- it returns a fake session object which is used by the Next-Auth middleware
|
||||
|
||||
Instructions: when in dev environment, uncomment the following code snippet
|
||||
- this will return a fake session object which is used by the Next-Auth middleware
|
||||
- when in production environment, comment the code snippet back
|
||||
|
||||
Note: this is not a secure way to handle authentication, it is only for development purposes
|
||||
- in production environment, the auth should be handled by the Next-Auth middleware
|
||||
|
||||
Code snippet:
|
||||
|
||||
// return(Promise.resolve(session));
|
||||
const session:Session = {
|
||||
user: {
|
||||
id: "109754742613069927799",
|
||||
name: "Nikola Derežić",
|
||||
},
|
||||
expires: "123",
|
||||
};
|
||||
|
||||
return(Promise.resolve(session));
|
||||
*/
|
||||
|
||||
return(auth());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user