Import userId

PHOTO EMBED

Sat Jun 12 2021 13:21:50 GMT+0000 (Coordinated Universal Time)

Saved by @redflashcode #javascript

  
import { LightningElement } from 'lwc';
import Id from '@salesforce/user/Id';

export default class MiscGetUserId extends LightningElement {
    userId = Id;
}
content_copyCOPY

Salesforce