u
This commit is contained in:
@@ -6,7 +6,7 @@ This document is auto-generated from the JSDoc comments in `src/store` by runnin
|
||||
|
||||
*Source: `src/store/google_auth/add.js`*
|
||||
|
||||
Adds a new allowed Google auth email.
|
||||
Adds a new allowed Google auth email (registration). Pending `autoinvite` rows for this email are consumed in the same transaction: each is deleted and turned into a `companyuser` with the invited role.
|
||||
|
||||
**Parameters**
|
||||
|
||||
@@ -144,7 +144,7 @@ await store.google_auth.setProfile(42, { picture: 'url', pictureBinary: buffer,
|
||||
|
||||
*Source: `src/store/google_auth/setSelectedCompany.js`*
|
||||
|
||||
Sets the currently selected company for a Google auth user.
|
||||
Sets the currently selected company for a Google auth user. The user must be a member (`companyuser`) of the company.
|
||||
|
||||
**Parameters**
|
||||
|
||||
@@ -157,6 +157,10 @@ Sets the currently selected company for a Google auth user.
|
||||
|
||||
`Promise<void>`
|
||||
|
||||
**Throws**
|
||||
|
||||
`Error` — 'Not authorized' if the user is not a member of the company.
|
||||
|
||||
**Example**
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user