Comments (11)
Hey @AaronNGray thanks for your suggestion. Just to have an estimate of the urgency of this: how do you feel about the current documentation? How is it lacking? https://github.com/nmaro/ooth/wiki
from ooth.
The documentation is now prettier :) https://nmaro.github.io/ooth/
I still keep this open for generated docs...
from ooth.
@chase-moskal his install problems most likely had a different nature since I only just introduced typescript.
from ooth.
Hi Nick, yeah I have had a quick look, I also tried building your code on Windows and Linux an had npm install problems so have to been able to evaluate it properly as of yet. I will try on Mac hopefully within the next few days as I am also very busy :)
from ooth.
The documentation looks a lot better.
One thing though is Ooth OAuth/OAuth2 compatible as it does not mention this at all in the documentation ?
from ooth.
I personally haven't needed it but it shouldn't be difficult to build a plugin on top of a passport.js strategy similarly to e.g. https://github.com/nmaro/ooth/tree/master/packages/ooth-facebook
from ooth.
Talking about documentation, do you have a way to customize the password validation for ooth-local?
from ooth.
@MickaelBZH yep, take this object as reference, and pass it as validators
to the constructor, e.g.
const validators = {
password: {
test: (password: string) =>
/\d/.test(password) && /[a-z]/.test(password) && /[A-Z]/.test(password) && /.{6,}/.test(password),
error: 'validators.invalid_password',
},
}
oothLocal({
/* other configs */
validators,
}))
from ooth.
Ok thanks. Another question related to ooth-local. Calling register set the email and the password, but not the username? Is that intended? Am I supposed to also call set-username after to actually set a username so a user can login with it?
from ooth.
@MickaelBZH correct. If you are motivated, the feature you are mentioning could be implemented by copying some logic from set-username to register.
from ooth.
@AaronNGray
I also tried building your code on Windows and Linux an had npm install problems so have to been able to evaluate it properly as of yet.
pull request #69 should fix the npm installation problems for you β
from ooth.
Related Issues (20)
- This is not defined. It's defined above in another scope. I can do a pull request if you want me to... HOT 1
- Typescript HOT 3
- ooth-local-emailer url parameter HOT 1
- local-plugin: remember me HOT 3
- TypeError: Ooth is not a constructor HOT 4
- Accessing users' roles through withUser HOC HOT 1
- how to get ooth integrated and deployed in a kubernetes cluster? HOT 6
- prisma backend? HOT 2
- [Backend] Prisma Integration as alternative to mongodb HOT 10
- Passworless login using Twillio HOT 1
- Enhance ooth Documentation
- React Native error "Canβt Find Variable Self" when import { OothClient } from 'ooth-client' HOT 1
- Capcha strategy
- TypeError: ooth.usesSession is not a function
- User serialization / deserialization
- Profile on registration HOT 1
- Ooth Client headers
- oothJwt and reset password
- Is this project still maintained? HOT 1
- Wildcard Sessions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ooth.