inProgress-team / inProgress-team/react-native-meteor

loginWithToken

Open
#325 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
688
Forks
200
PR merge metrics
No merged PRs in 30d

Description

Please add this function to '/node-modules/react-native-meteor/src/user/User.js' so that we can use Meteor.loginWithToken

loginWithToken(value, callback) {
Data._tokenIdSaved = value;
if (value !== null) {
this._startLoggingIn();
call('login', { resume: value }, (err, result) => {
this._endLoggingIn();
this._handleLoginCallback(err, result);
typeof callback == 'function' && callback(err);
});
} else {
this._endLoggingIn();
}
},

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.