Skip to content

Commit b79b40f

Browse files
committed
Expose login/signupKey variants
1 parent fb3fb45 commit b79b40f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/java_glue.rs.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,12 @@ foreign_class!(class Account {
133133
fn signup(client: &Client, user: &User, password: &str) -> Result<Account> {
134134
Account::signup(client.clone(), user, password)
135135
}
136+
fn loginKey(client: &Client, username: &str, main_key: &[u8]) -> Result<Account> {
137+
Account::login_key(client.clone(), username, main_key)
138+
}
139+
fn signupKey(client: &Client, user: &User, main_key: &[u8]) -> Result<Account> {
140+
Account::signup_key(client.clone(), user, main_key)
141+
}
136142
fn Account::fetch_token(&mut self) -> Result<()>; alias fetchToken;
137143
fn Account::force_server_url(&mut self, api_base: &str) -> Result<()>; alias forceServerUrl;
138144
fn Account::change_password(&mut self, password: &str) -> Result<()>; alias changePassword;

0 commit comments

Comments
 (0)