You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-151Lines changed: 1 addition & 151 deletions
Original file line number
Diff line number
Diff line change
@@ -55,157 +55,7 @@ let passage_flex = PassageFlex::new(
55
55
56
56
### Go Passwordless
57
57
58
-
Find more details about Passkey Flex on our [Passkey Flex Documentation](https://docs.passage.id/flex) and [Docs.rs](https://docs.rs/passage_flex/latest/passage_flex/) pages.
59
-
60
-
## API Reference
61
-
62
-
### Create a Registration Transaction
63
-
64
-
To create a transaction to start a user passkey registration, use the `create_register_transaction` method.
65
-
66
-
```rust
67
-
usepassage_flex::PassageFlex;
68
-
69
-
letpassage_flex=PassageFlex::new(
70
-
std::env::var("PASSAGE_APP_ID").unwrap(),
71
-
std::env::var("PASSAGE_API_KEY").unwrap(),
72
-
);
73
-
74
-
letexternal_id="a unique immutable string that represents your user".to_string();
75
-
letpasskey_display_name=
76
-
"the label for the user's passkey that they will see when logging in".to_string();
// use external_id to do things like generate and send your own auth token
124
-
}
125
-
Err(err) => {
126
-
// nonce was invalid or unable to be verified
127
-
}
128
-
}
129
-
```
130
-
131
-
## Retrieve User Info
132
-
133
-
To retrieve information about a user by their external ID -- which is the unique, immutable ID you supply to associate the Passage user with your user -- use the `get` method.
134
-
135
-
```rust
136
-
usepassage_flex::PassageFlex;
137
-
138
-
letpassage_flex=PassageFlex::new(
139
-
std::env::var("PASSAGE_APP_ID").unwrap(),
140
-
std::env::var("PASSAGE_API_KEY").unwrap(),
141
-
);
142
-
143
-
// this is the same value used when creating a transaction
0 commit comments