You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Guest link renewal should tell whether a PIN was sent #3786
Is your feature request related to a problem? Please describe.
POST /v1beta1/extensions/org.libregraph/guestLinks/renew always responds with an empty 200. The guest gets an email with a PIN only if the request is authorized by a valid session cookie for the share.
The client needs to know whether a PIN was sent, so it can show a PIN form instead of asking the guest to open the link from the email. The session cookie is http-only, so web can't check it and has to guess from the session expiry it remembers from the last token or PIN verification.
If the guess is wrong, the guest either gets a PIN form without a PIN in the email, or a PIN in the email but no form to enter it.
Describe the solution you'd like
On success, the renew endpoint responds with a body that says whether the email contains a PIN, e.g.:
{ "withPin": true }
withPin is true exactly when a PIN was issued and sent, i.e. validSession was true and the renewal went through. In every other successful case, including the one where nothing was sent because the newest link can still be redeemed, it is false. This keeps those cases indistinguishable to callers without a session, as they are today.
Activity
JammingBen commentedon Oct 22, 2026
@maki5 Do you have any objections here? We can live without it, but it would make the implementation of opencloud-eu/web#3983 a bit easier.
maki5 commentedon Oct 22, 2026
sounds ok to me, will implement