Api/auth.mask

From Minux Wiki
Revision as of 19:20, 26 September 2024 by Shorun (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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()