Editing forked opengb-modules

Is there a proper way to edit / run forked opengb-modules, I am trying to edit the auth module inside opengb-module registry and was wondering if there was a certain way to do this.
1 Reply
Nathan
Nathan2y ago
i’ll be on in a few. planning on fixing that io issue soon too right now, the best way is to either: 1. the cleanest way is to: fork the repo and add the local registryin your backend.json. we did this before. if you're confused by this, go to #2 for now. 2. the hacky way: download the zip from github and copy the code for auth and paste it in to your local /modules folder. then update the registry for auth to look like this:
{
"registries": {
"local": {
"local": {
"directory": "modules"
}
}
},
"modules": {
"auth": {
"registry": "local",
"config": {
"email": {
"fromEmail": "test@test.com"
}
}
},
"email": {
"config": {
"provider": {
"test": {}
}
}
},
"users": {},
"rate_limit": {},
"tokens": {}
}
}
{
"registries": {
"local": {
"local": {
"directory": "modules"
}
}
},
"modules": {
"auth": {
"registry": "local",
"config": {
"email": {
"fromEmail": "test@test.com"
}
}
},
"email": {
"config": {
"provider": {
"test": {}
}
}
},
"users": {},
"rate_limit": {},
"tokens": {}
}
}

Did you find this page helpful?