collab: Refresh the LLM token once the terms of service have been accepted (#34833)
Release Notes: - N/A
This commit is contained in:
parent
254c7a330a
commit
589af59dfe
1 changed files with 7 additions and 0 deletions
|
@ -4167,6 +4167,13 @@ async fn accept_terms_of_service(
|
||||||
response.send(proto::AcceptTermsOfServiceResponse {
|
response.send(proto::AcceptTermsOfServiceResponse {
|
||||||
accepted_tos_at: accepted_tos_at.timestamp() as u64,
|
accepted_tos_at: accepted_tos_at.timestamp() as u64,
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
// When the user accepts the terms of service, we want to refresh their LLM
|
||||||
|
// token to grant access.
|
||||||
|
session
|
||||||
|
.peer
|
||||||
|
.send(session.connection_id, proto::RefreshLlmToken {})?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue