This commit is contained in:
seb
2026-11-02 00:19:21 +01:00
parent 55f04de8a8
commit d0a33b1f82
35 changed files with 4919 additions and 3739 deletions

View File

@@ -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