We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Today I started implementing the Oauth for Apple login and found a big bug !
The below code will success and return the first user of my database to the requester!
export class AccountsAppleProvider { async authenticate(params) { return null; } }
Steps to reproduce the behavior, please provide code snippets or a repository. You should add some null check before database finding
async findUserByServiceId(serviceName, serviceId) { //------ You should add some null check before database query ------ const user = await this.collection.findOne({ [`services.${serviceName}.id`]: serviceId, }); if (user) { user.id = user._id.toString(); } return user; }```
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug report
Today I started implementing the Oauth for Apple login and found a big bug !
To Reproduce
The below code will success and return the first user of my database to the requester!
Steps to reproduce the behavior, please provide code snippets or a repository.
You should add some null check before database finding
The text was updated successfully, but these errors were encountered: