AuthenticateUserFromScript()

// in class: Session
function AuthenticateUserFromScript(): void;

This function forcefully authenticates a user from within a script. Even if the user has failed authentication, typed the wrong password, had the wrong key… this function will force a successful authentication.

Warning

For obvious reasons this function should always only be used inside of an OnAuthRequest event-handler.