Api/auth.mask: Difference between revisions
Jump to navigation
Jump to search
(Created page with "this api is part of the auth client side package and is used to mask as another user on the rednet network '''usage:''' auth.mask(username, password) '''output:''' become the new user untill the mask is removed with auth.unmask()") |
No edit summary |
||
Line 1: | Line 1: | ||
this [[api]] is part of the [[Api/auth|auth]] client side package and is used to mask as another user on the rednet network | this [[api]] is part of the [[Api/auth|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 | |||
Latest revision as of 19:20, 26 September 2024
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()