Api/auth.mask
Jump to navigation
Jump to search
this api is part of the auth client side package and is used to mask as another user on the rednet network
this can be used to switch to another user and return back to the actual user later, usefull for programs to talk to network servers with another name if needed, eg: syncing a user on netfolder to share data.
Unmasking can be done without entering the password, since we already know the data is valid
usage:
auth.mask(username, password)
output:
become the new user untill the mask is removed with auth.unmask()