Set the current user profile used to determine API endpoints.
(&mut self, profile: &AuthProfile)
| 259 | |
| 260 | /// Set the current user profile used to determine API endpoints. |
| 261 | pub fn set_auth_profile(&mut self, profile: &AuthProfile) -> Result<(), DatabaseError> { |
| 262 | self.set_json_entry(Table::State, CODEWHISPERER_PROFILE_KEY, profile)?; |
| 263 | self.delete_entry(Table::State, CUSTOMIZATION_STATE_KEY) |
| 264 | } |
| 265 | |
| 266 | /// Unset the current user profile used to determine API endpoints. |
| 267 | pub fn unset_auth_profile(&mut self) -> Result<(), DatabaseError> { |
no test coverage detected