Get the current user profile used to determine API endpoints.
(&self)
| 254 | |
| 255 | /// Get the current user profile used to determine API endpoints. |
| 256 | pub fn get_auth_profile(&self) -> Result<Option<AuthProfile>, DatabaseError> { |
| 257 | self.get_json_entry(Table::State, CODEWHISPERER_PROFILE_KEY) |
| 258 | } |
| 259 | |
| 260 | /// Set the current user profile used to determine API endpoints. |
| 261 | pub fn set_auth_profile(&mut self, profile: &AuthProfile) -> Result<(), DatabaseError> { |
no test coverage detected