1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
use cratePublicKey;
/// The kind of authentication flow to perform.
///
/// Used when starting a [`PubkyGrantAuthFlow`](crate::PubkyGrantAuthFlow) or
/// legacy cookie auth flow to tell the SDK whether the user already has an
/// account (`SignIn`) or needs to create one (`SignUp`).
///
/// # When to use which
///
/// - **`SignUp`** — the user does not yet have an account. The flow creates
/// the account on the specified homeserver as part of the auth handshake.
/// Some homeservers require a `signup_token` (invite code).
/// - **`SignIn`** — the user already signed up on a homeserver. The flow
/// authenticates against the existing account.