$fn.getCurrentUser()
サインインしているユーザを取得します。[非同期]
引数
なし
戻り値
| 型 | 説明 |
|---|---|
| User | サインイン中のユーザを返却します |
| オブジェクト | プロパティ | 型 | 説明 |
|---|---|---|---|
| User | userId | string | ユーザID (GUID) |
| string | Eメール | ||
| name | string | 名前 | |
| custom_01 | string | カスタム属性1 | |
| custom_02 | string | カスタム属性2 | |
| custom_03 | string | カスタム属性3 | |
| custom_04 | string | カスタム属性4 | |
| custom_05 | string | カスタム属性5 | |
| custom_06 | string | カスタム属性6 | |
| custom_07 | string | カスタム属性7 | |
| custom_08 | string | カスタム属性8 | |
| custom_09 | string | カスタム属性9 | |
| custom_10 | string | カスタム属性10 | |
| enabled | boolean | 有効/無効 | |
| created | string | 作成日時 | |
| updated | string | 更新日時 | |
| status | string | ユーザのステータス |
サンプル
try { const user = await $fn.getCurrentUser(); console.log(user);} catch (err) { console.log("Error", err);}