Skip to content
New issue

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

Release 2.7.1 to master #138

Merged
merged 21 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
c39bf1a
Update Meteor.d.ts
pihentagy Sep 19, 2023
5b1af69
Fixed prettier errors
Oct 11, 2023
e657a53
Added useTracker typing
Oct 11, 2023
4bf6846
Update Meteor.d.ts
pihentagy Oct 17, 2023
164eb0b
build(deps-dev): bump @babel/traverse from 7.20.13 to 7.23.2
dependabot[bot] Oct 18, 2023
82a0f72
build(deps-dev): bump browserify-sign from 4.2.1 to 4.2.2
dependabot[bot] Oct 27, 2023
c3cee6e
Merge pull request #132 from pihentagy/patch-2
jankapunkt Nov 21, 2023
9026e76
add 2fa login
bratelefant Nov 25, 2023
cc36a64
updated docs
bratelefant Nov 26, 2023
4b76552
Merge pull request #136 from bratelefant/pr-set-subs-unready-on-disc
jankapunkt Nov 26, 2023
a2ec075
relase: 2.7.0
jankapunkt Dec 4, 2023
4004487
implement Accounts.has2faEnabled
bratelefant Dec 4, 2023
aa50dcc
Merge pull request #135 from meteorrn/dependabot/npm_and_yarn/browser…
jankapunkt Dec 5, 2023
9dd9792
Merge pull request #134 from meteorrn/dependabot/npm_and_yarn/babel/t…
jankapunkt Dec 5, 2023
40cb8fe
Merge pull request #139 from bratelefant/pr-set-subs-unready-on-disc
jankapunkt Dec 5, 2023
ad875d7
fix(deps): npm audit fix
jankapunkt Dec 5, 2023
a9d9cd0
release: 2.7.1
jankapunkt Dec 5, 2023
e54369d
ci: bump node to use at least 16
jankapunkt Dec 5, 2023
8159b92
fix: enableVerbose() not setting isVerbose correctly
taras-danyliuk Dec 21, 2023
290df64
fix: replace local variable isVerbose usage in Meteor.js file
taras-danyliuk Dec 21, 2023
ed9c0f6
Merge pull request #140 from taras-danyliuk/master
jankapunkt Dec 22, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 20

- name: cache dependencies
uses: actions/cache@v3
Expand All @@ -37,7 +37,7 @@ jobs:
needs: [lintjs]
strategy:
matrix:
node: [14, 16, 18]
node: [16, 18, 20]
steps:
- name: Checkout ${{ matrix.node }}
uses: actions/checkout@v3
Expand All @@ -63,7 +63,7 @@ jobs:
needs: [unittest]
strategy:
matrix:
node: [14, 16, 18]
node: [16, 18, 20]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
19 changes: 18 additions & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ Returns true if attempting to login

Returns true if attempting to logout

### `Meteor.loginWithPassword`
### `Meteor.loginWithPassword(selector, password, callback)`

Logs a user in. If selector is a string containing `@`, then this will be interpreted as an email, other strings as a username. The selector can also be an object with a single key `email`, `id` or `username`.
The optional Callback is called with a single `Error` argument on failure.

If 2fa is enabled, the `error` property of the argument may be `no-2fa-code`. Read more in [the Meteor docs](https://docs.meteor.com/api/accounts#Meteor-loginWithPassword)

### `Meteor.loginWithPasswordAnd2faCode(selector, password, code, callback)`

Logs a user in, same as `loginWithPassword`, but providing a 2fa token via the argument `code`. Read more on this [in the Meteor docs](https://docs.meteor.com/packages/accounts-2fa.html).

### `Meteor.logout`

Expand Down Expand Up @@ -174,6 +183,14 @@ Registers a callback to be called when login fails

- callback

#### `Accounts.has2faEnabled(callback)`

Checks if the current user has 2fa enabled, via callback; cf. [the meteor docs](https://docs.meteor.com/packages/accounts-2fa#Accounts-has2faEnabled)

**Arguments**

- callback - Called with an error on the first argument, e.g. if the user is currently not logged in, and a boolean result on the second argument, if the user has 2fa enabled.

#### `Accounts._hashPassword(plaintext)` => `{algorithm:"sha-256", digest:"..."}`

Hashes a password using the sha-256 algorithm. Returns an object formatted for use in accounts calls. You can access the raw hashed string using the digest property.
Expand Down
Loading
Loading