All Questions
Tagged with meteor meteor-accounts
730 questions
0
votes
1
answer
50
views
Login forbidden after upgrading Meteor version 2.2 to 2.4
Meteor version: 2.4
Node version: 14.x
After upgrading Meteor version 2.2 to 2.4 I face some issues. In the project, I used useraccounts:core and connected with that some other dependencies. After the ...
1
vote
2
answers
349
views
How to change browser router depending on the type of user logged in
I am building a web app using Meteor.js with React. The app has two types of users: "user" and "employer", each with their own routes (like different dashboards and other pages). ...
0
votes
0
answers
51
views
Meteor take too long to response a call
I have a peculiar issue, When I call a meteor method on the frontend, Meteor executes and returns the method but my frontend doesn't execute the callback, but It only happens on my production app, on ...
0
votes
3
answers
72
views
Meteor not able to create user after adding attaching schema to users collection
I have installed mizzao:user-status package to track user activity like online, idle status.
I have added status to users collection:
import SimpleSchema from "simpl-schema";
const ...
6
votes
2
answers
3k
views
Getting 'certificate has expired' error while running meteor
While downloading [email protected]...:
error: certificate has expired
While downloading [email protected]...:
error: certificate has expired
While downloading alanning:roles@1....
1
vote
1
answer
61
views
Meteor - Accounts.forgotPassword triggers internal server error whil Email.send is working fine
I'm meeting an issue on Meteor with Accounts.forgotPassword method.
My email smtp is well set up as I can use Email.send() without any issue once app is deployed.
But strangely, accounts....
0
votes
0
answers
243
views
Meteor Google OAuth Error: "Failed to complete OAuth handshake with Google" Error 401 Unauthorized
I've been trying to set up Google OAuth Login on my Meteor Web App and I've been getting this error every time I try to log in. I've verified the domain on the search console and added the correct ...
1
vote
0
answers
89
views
Is there a way to use Meteor's Blaze in a meteor project already created with React integration?
I just want to somehow use the Meteor's accounts-ui package in my meteor x react project.
2
votes
1
answer
145
views
How to prevent Meteor's accounts-base from auto-publishing the email of the current user?
According to Meteor's documentation on the Accounts package:
By default, the current user’s username, emails and profile are published to the client.
Is it possible to prevent Meteor from auto-...
2
votes
1
answer
68
views
How to integrate account-js package to already existed mongo db?
I have a meteor app and want to migrate non-meteor app. I found account-js is compatible with the meteor account system. When I create new user everything works well but If I want to login with ...
2
votes
2
answers
573
views
Meteor.user with Additional Fields on Client
In Meteor, one can add additional fields to the root-level of the new user document like so:
// See: https://guide.meteor.com/accounts.html#adding-fields-on-registration
Accounts.onCreateUser((options,...
2
votes
0
answers
117
views
Meteor subscriptions changing after closing my latops lid. Why? and how to deal with it?
Ok. I'm using meteor, just meteor, no angular, no ionic. And I've come across some strange behavior: I have a user logged in, and I can log Meteor.user() just fine, it comes back with all the correct ...
0
votes
3
answers
439
views
Meteor framework - How to logout user after 5 minutes of innactivity
maybe I was not looking so deep, but I did not found the information in Meteor framework Docs, how and where I can set the time to logout user after for example 5 minutes of innactivity.
Q1:
I’m using ...
0
votes
2
answers
124
views
How to cutomise the url sent with Meteor Accounts.ui forgetpassword
I'm using accounts.ui for forget password
Accounts.forgotPassword({email: "[email protected]"}, function (e, r) {
if (e) {
console.log(e.reason);
} else {
// success
}...
1
vote
0
answers
124
views
Google OAuth conditional scope, requestPermissions
I am using the Meteor Account package for OAuth login with google.
My use case is to allow users to login with google. And later, provide them options to opt for linking to Google calendar.
i.e by ...
1
vote
0
answers
47
views
Use Meteor accounts packages outside a Meteor app
I have an old Meteor application that is no longer developed/supported, it has a number of users. I have a new app to replace it.
In my new Express app, I have a login handler that can accept a ...
1
vote
1
answer
119
views
how to sync pages after logout and login on one of them?
After logout and login I try to click something on another page but see endless spinner due to userId null. How to sync Meteor.userId after changing user? ON server side:
Meteor.publish('myPublish', ...
1
vote
0
answers
17
views
Using simple:rest with accounts-ui and iron router
I am authenticating users with accounts-ui and route them with iron router. Now I'd like to call the simple:rest API.
How can a user who is authenticated by accounts-ui make simple:rest calls with his ...
0
votes
0
answers
37
views
Meteor-Angular: Meteor.User is not assignable to type User
i have an Angular Meteor project running. Its running but for some reason after i tryed to update all packages ( which was not working ) im getting the following errors while compiling.
client/imports/...
2
votes
1
answer
124
views
Accounts.changePassword doesn't work in Method
I'm working on a Meteor app, and I want to move a call to Accounts.changePassword from the client to a method. However, when I try to run the method, I get this server error :
Exception while ...
0
votes
1
answer
103
views
Meteor: Calling verifyEmail From React Client?
I've read many SO posts about using Accounts.onEmailVerificationLink and Accounts.verifyEmail, but I haven't yet found one that seems to explain how to call them from a React client.
I have React ...
1
vote
1
answer
417
views
Can't login with Meteor function loginWithPassword, Unrecognized options for login request [400] error
I'm working on React + Meteor application and can't login using accounts-password package via loginWithPassword function.
The official API says that Unrecognized options for login request [400] error ...
2
votes
3
answers
196
views
Meteor user accounts issue - Duplicate account being created with OAuth service (accounts-google)
I am working with Meteor User accounts to create users. I have implemented two ways of creating users.
By using accounts-password to create (default one ).
OAuth Services (accounts-google and ...
0
votes
1
answer
299
views
Meteor accounts-password && accounts-google user creation conflict
I am working on a Meteor project. I have used accounts-password to create users and now I am trying to integrate with accounts-google plugin to provide OAuth support. Now the problem is if I use ...
0
votes
1
answer
37
views
Meteor Method return value not reflecting on cliend side
I have written a Meteor.call() method to check if the user already exists in the system.
Below is the code
views/clientside.js
inviteEmail() {
let inviteEmailAddress = FlowRouter.getParam("...
0
votes
1
answer
165
views
Getting Google Maps to load in meteor project
I am have an issue of getting my meteor project to display a map. I am using dburles as my googleapi library. I have followed the instructions in the tutorial and my GoogleMaps.load() returns ...
0
votes
0
answers
62
views
Meteor Semantic UI react: Modifying user account information
In creating a user settings page, I wanted display current user account email and password and give the user the ability to change both.
I read up on https://guide.meteor.com/accounts.html#displaying-...
1
vote
0
answers
122
views
Meteor accounts-base - Log out without unstore token
I use accounts-base for my project, and I would like to open a connection from external people during x days.
To open this connection, I create a token (Accounts._generateStampedLoginToken)
and I ...
0
votes
1
answer
30
views
How to consistently determine username with Meteor and React
I have a simple meteor application with a component to show the username:
const Welcome = ({ isLoading, username }) => {
if (isLoading) {
return <Loader />;
} else {
return <...
1
vote
2
answers
118
views
Error when sending email with Accounts.sendVerificationEmail()
Thank you for reading my message, here is my problem :
I recently started using email package, I defined MAIL_URL and sent emails with Email.send() successfully.
But now I want to send verification ...
1
vote
0
answers
76
views
Meteor - Get plain username & password on server when user tries to login
I am trying to authenticate user login from some 3rd Party Api with same login credentials in case the login on Meteor fails.
I have tried to check for the username & password in Accounts....
0
votes
0
answers
58
views
Unable to Get user Email address In meteor 1.9
Uncaught TypeError: Cannot read property 'emails' of undefined
when I am using Meteor.user().emails[0].address
my Approach following
const currentUserEmail = Meteor.user.emails[0].address;
console....
0
votes
0
answers
204
views
Meteor.userId() lost on browser refresh
I use the Meteor.userId() to check if the user has logged in or not. This works well when the user is not logged in(Meteor.userId() is null) and when the user has logged in(Meteor.userId() is not null)...
0
votes
0
answers
52
views
FlowRouter not redirecting calling its action in onLogout
On the client side, when I implement Accounts.onLogout I say that it should redirect to the root directory using FlowRouter.go('root'); and also tried with FlowRouter.go('/');. However it seems that ...
0
votes
2
answers
52
views
Inconsistent error format with Meteor Accounts.changePassword
I'm using Meteor 1.8.1 and have found what seems like inconsistent and undocumented behaviour in the errors returned by Accounts.changePassword.
The docs say that a Meteor error object will include a ...
1
vote
1
answer
52
views
Meteor 1.8.1 SSL double connecting
I have a localhost server (Windows 10 Pro x64 build 1903) that is being used for development before being pushed to production (Galaxy). For authentication through Facebook or Google, it requires to ...
0
votes
1
answer
54
views
MultiTenant application in MeteorJs
I am working on a MultiTenant application in MeteorJs and using account-base package to create and manage user accounts.
I have got around the issue of unique userid by concatening the domain with the ...
1
vote
1
answer
234
views
Meteor accounts - Remember me option
I am experimenting with meteor/account-base package and so far it is working really good. Although, I couldn't quite figure out how to add a remember me functionality.
I managed to change the token ...
1
vote
0
answers
412
views
Meteor Accounts + Apple Sign In
Is “Sign In with Apple” supported by Meteor Accounts? I cant find it in https://docs.meteor.com/api/accounts.html#Meteor-loginWith but will be required by any new/updated iOS app that uses Facebook/...
3
votes
1
answer
80
views
How to customise email transports
As I understood Meteor internally uses nodemailer to send emails and creates the corresponding transport based on the defined MAIL_URL environment property.
We have implemented an EmailSenderService ...
2
votes
0
answers
477
views
Login meteor web application with SSO
I need to implement SSO login functionality in meteor web application where the third party services providers are not going to be like some facebook, google, github...etc, I have my own application ...
1
vote
1
answer
61
views
Meteor: SSR necessary to secure admin part of application?
I have my extended user model in the Meteor.users collection, which I'm publishing most fields from to the client. Each user has an isAdmin field, set to false by default.
Now I have two concerns, ...
1
vote
2
answers
65
views
Override or disable DEFAULT_PASSWORD_ENROLL_TOKEN_EXPIRATION_DAYS?
We are sending out account invitation messages to users, using Accounts.sendEnrollmentEmail. In some cases, users fail to click the link for some time. In those cases, we have to re-send the ...
0
votes
1
answer
235
views
Using Accounts.FindUserByUsername to search for usernames in Users collection (Meteor)
Would really appreciate some help here. Been banging my head against the table for a couple hours now.
I’m trying to create a simple search function to search for usernames. My goal is to be able to ...
0
votes
1
answer
374
views
Meteor accounts password: TypeError: Accounts.setPassword is not a function
I am using:
Meteor Version 1.8,
[email protected]
When invoking:
Meteor.methods({
setPassword(newPassword, userId) {
check(userId, String);
check(newPassword, String);
...
0
votes
1
answer
67
views
Accounts can't connect to the users in my mongo DB user collections
I'm building a custom account system with meteor accounts package when i register a new user accounts is loggin him directly (a behavior that i does'nt asked) and meteor toys shows one user in ...
1
vote
1
answer
34
views
What "Logical Query Operator/s" should I use to merge two separate queries?
What Logical Query Operator/s do I use to join TWO queries yielding documents that belong to the logged in user Meteor.userId(); AND all documents that have the logged in user's phone number in the ...
0
votes
1
answer
294
views
Redirect login page when click on forget password link meteor accounts
I am using accounts package of the meteor. I am facing the issue in forgot the password. I got a mail for reset password and when I click on this link then it redirects to login template instead to ...
0
votes
1
answer
77
views
How can I extend the users collection with Astronomy and accounts-ui?
I need to be able to extend the collection that accounts-ui creates by default of users.
import { Class } from 'meteor/jagi:astronomy';
import { Behavior } from 'meteor/jagi:astronomy-softremove-...
1
vote
1
answer
252
views
How can sort alphabetically of users using Meteor?
I am using meteor user accounts package. I want to sort all users according to alphabetically ascending order. My Collection Structure is like this
{
"_id" : "6J3jjZB7DMRyPcTxh",
"createdAt" :...