1 pub const TOKEN_PATH_STR: &str = ".smb/token";
2
3 #[cfg(debug_assertions)]
4 pub const GH_OAUTH_CLIENT_ID: &str = "053e152f1b78ecee552b";
5 #[cfg(not(debug_assertions))]
6 pub const GH_OAUTH_CLIENT_ID: &str = "bf1f12d97659a6495e43";
7
8 pub const GH_OAUTH_REDIRECT_HOST: &str = "http://localhost";
9 pub const GH_OAUTH_REDIRECT_PORT: &str = "8808";
10
11 pub const SMB_CLIENT_ID: &str = "cli";
12 pub const SMB_CLIENT_SECRET: &str = "secretttttttt";
13
14 #[cfg(debug_assertions)]
15 pub const SMB_API_PROTOCOL: &str = "http";
16 #[cfg(not(debug_assertions))]
17 pub const SMB_API_PROTOCOL: &str = "https";
18
19 #[cfg(debug_assertions)]
20 pub const SMB_API_HOST: &str = "localhost:8088";
21 #[cfg(not(debug_assertions))]
22 pub const SMB_API_HOST: &str = "api.smbpndk.com";
23
24 // Paths
25 pub const PATH_USERS: &str = "v1/users";
26 pub const PATH_USERS_PASSWORD: &str = "v1/users/password";
27 pub const PATH_USERS_SIGN_OUT: &str = "v1/users/sign_out";
28 pub const PATH_USERS_SIGN_IN: &str = "v1/users/sign_in";
29 pub const PATH_LINK_GITHUB_ACCOUNT: &str = "v1/link_github_account";
30 pub const PATH_RESET_PASSWORD_INSTRUCTIONS: &str = "v1/resend_reset_password_instructions";
31 pub const PATH_RESEND_CONFIRMATION: &str = "v1/resend_confirmation";
32 pub const PATH_AUTHORIZE: &str = "v1/authorize";