Support samples

Writing samples that show how I handle support. The knowledge-base articles and ticket replies are written for Echoed, the music review platform I built with my team as my UTN thesis. The tickets and customers are fictional; every product behavior described is real and checked against the code.

The last section is real: a safeguard in Moya, the system I build and support at work.

Product
Echoed (music reviews, Spring Boot API, Angular frontend)
Contents
3 knowledge-base articles, 1 customer reply, 1 escalation note (resolved), 1 prevention write-up

Knowledge-base articles

Knowledge base · Account

Signing in with Google or with email and password

For: Anyone who isn't sure how they created their account, or who sees “Invalid credentials” with a password they know is right.

Echoed has two ways to sign in: the Google button under “Or continue with”, or your username or email plus a password. Which one works depends on how the account was created.

  • Created with Google. The account has no Echoed password. Signing in with an email and password shows “Invalid credentials. Please check your username and password.”, even if you type your Google password. Use the Google button instead.
  • First Google sign-in. Echoed asks you to choose a public username on the “Almost there!” screen: 3 to 50 characters, using letters, numbers, and the symbols - _ and . only.
  • Created with email and password. Sign in with your username or your email. Neither is case-sensitive.
  • Using both. If you later use the Google button with the same email address, Google is linked to your existing account and your reviews stay where they are. Your password still signs you in, but Change Password is no longer available, because the account is now treated as a Google account.
  • A second account with the same email. Not possible. Registration is rejected because the email is already in use.

Still stuck? Write to support with the email address on your account and which button you used. Never send your password.

Knowledge base · Sessions

Why Echoed signed you out (“Session Expired”)

For: Users who see “Your session has expired. Please log in again to continue.”

When you sign in, Echoed gives your browser two keys: an access key that lasts 30 minutes and a renewal key that lasts 30 days. When the access key runs out, Echoed gets a new one in the background, and each renewal also replaces the renewal key. You only see “Session Expired” when a renewal fails. The usual reasons:

  • You were away for more than 30 days. The renewal key has run out.
  • You use Echoed on another device or browser. An account has one renewal key at a time. When one device renews it, the key on the other device stops working, and that device shows Session Expired at its next renewal, within 30 minutes. If you use two devices at the same time, this can repeat.
  • You didn't tick “Remember me”. With a password sign-in, your session is then kept only in that browser tab, so closing the tab signs you out.

What to do: click Ok and sign in again. Reviews and comments you already posted are not affected.

Still stuck? Write to support with the time it happened and whether you use Echoed on more than one device.

Knowledge base · Reviews

Editing or deleting your review (Echo)

For: Users who want to change a rating or the text of a review, or remove it.

You can have one Echo per song and one per album. If you already reviewed it, “Make an Echo” opens your existing Echo instead of a new one.

To edit an Echo

  1. Open the song or album page and click the pencil icon on your Echo, or click “Make an Echo”.
  2. Change the stars (half stars are allowed, from 0.5 to 5) and the text (10 to 500 characters).
  3. Click “Update Echo”. Reactions and comments stay, and the Echo keeps its original date.

To delete an Echo

  1. Click the trash icon on your Echo.
  2. Confirm with “Delete”.

Deleting can't be undone. Comments on the Echo are hidden, and reactions on it and on its comments are removed. Only the author can edit an Echo; moderators can also delete one.

Still stuck? If you don't see the pencil icon, check that you're signed in with the account that wrote the Echo. If you are, write to support with a link to the song or album.

Reply to a customer who can't sign in

Incoming ticket

From:
Dana R.
Subject:
Can't log in!!!
I've been trying to log in for 20 minutes. My password is 100% correct and it keeps saying invalid credentials. I've written like 40 reviews on this site, I'm not starting over. Fix this.

What I checked first

Whether the account exists, its status, and how it signs in.

SELECT u.username, u.active, u.is_banned, c.provider,
       c.password IS NULL AS no_password
FROM credential_entity c
JOIN users u ON u.user_id = c.user_id
WHERE LOWER(c.email) = LOWER('dana@example.com');

-- active = true, is_banned = false,
-- provider = GOOGLE, no_password = true

Active, not banned, created with Google, no password. That explains the error.

My reply

Subject: Re: Can't log in!!!

Hi Dana,

Sorry about this. Twenty minutes of “invalid credentials” with a password you know is right would frustrate anyone. Your account is active and in good standing, and your 40 reviews are safe.

Here's what's happening: you created your Echoed account with the Google button, so there is no Echoed password on it. When you type an email and password, Echoed has nothing to compare them with and shows “invalid credentials”, even though your password is correct for Google.

To sign in:

  1. Go to the Echoed login page.
  2. Under “Or continue with”, click Google.
  3. Choose the Google account for dana@example.com.

You'll be back in, with all your reviews where you left them.

If the Google button shows an error or brings you back to the login page, reply to this email with a screenshot and roughly what time it happened, and I'll look into it right away.

Best,
Fran, Echoed Support

Escalation note to engineering

Internal · Bug report · Resolved

Sign-in returns an expired refresh token, so /auth/refresh fails with a 500 and users are signed out every 30 minutes

Severity
High. Affected users can sign in but are signed out 30 minutes later, every time. There is nothing they can do about it.
Who is affected
Any account whose refresh token was last issued more than 30 days ago (no renewal since then). Password and Google sign-in both.
Steps to reproduce
  1. Run the API locally with jwt.expiration=60000 and refresh.token.expiration=120000 (1 and 2 minutes).
  2. Register an account with POST /api/v1/auth/register and wait 3 minutes.
  3. Sign in with POST /api/v1/auth. It returns 200. Decode the refreshToken in the response: its exp is already in the past.
  4. Wait 1 minute and call GET /api/v1/users/me. It returns 401, and the frontend calls POST /api/v1/auth/refresh with that refresh token.
Expected
Sign-in returns a valid refresh token. An expired or unknown refresh token gets a clear 401.
Actual
Sign-in returns the refresh token stored at registration or at the last renewal, already expired. The refresh call returns 500, and the frontend shows “Session Expired”. Signing in again returns the same expired token, so the loop repeats.
Evidence

Refresh response:

POST /api/v1/auth/refresh  ->  500
{
  "message": "Internal server error: JWT expired at …",
  "details": "uri=/api/v1/auth/refresh"
}

The stored token for the reporter's account never changed after registration:

SELECT u.username, c.provider, u.created_at,
       RIGHT(c.refresh_token, 12) AS token_end
FROM credential_entity c
JOIN users u ON u.user_id = c.user_id
WHERE c.email = 'reporter@example.com';

-- token_end matches the end of the refreshToken
-- returned by sign-in, and that token's exp is
-- about 30 days after created_at
Root cause
AuthService.authenticateUser builds the response from credential.getRefreshToken() and never issues a new one; the Google flow only creates one when it is null. In refreshAccessToken, the token is parsed before it is validated, so jjwt throws ExpiredJwtException and the catch-all handler turns it into a 500.
Workaround
None on the user's side. Signing in again only buys another 30 minutes.
Customer comms
While it was open, reporters were told it was a known issue and a “Known issue” note went into the Session Expired article. When the fix shipped, I let them know and removed the note.
Resolution
Fixed in utnmusicapp. Every sign-in, with a password or with Google, now issues and stores a new refresh token. An expired, invalid or unknown refresh token gets a 401 with a clear message instead of a 500, so the frontend simply asks the user to sign in again. Tests cover both cases.

Preventing support issues: correct interest rates in every legal document

From Moya, the case-management system I build and support. Not an incident: a safeguard that stops a costly kind of ticket before any user sees it.

Risk
Moya generates legal documents (escritos) and downloadable PDFs that include settlement and interest figures. If a lawyer files or sends a document with a wrong amount, it costs the lawyer and the firm money.
Safeguard
Documents always use the interest rates (tasas) each firm has saved in Moya, never a default or hard-coded value. Calculations use decimal precision and rates tied to their effective date, so the same data always gives the same result.
How it's tested
Automated tests cover every document that contains these figures, both when the data goes into an escrito and when it only goes into the downloadable PDF. They check that the rates used are exactly the ones the firm saved, and they run before each release.
Why it matters for support
A wrong amount in a filed document is expensive and hard to spot. Catching it in tests means users never have to report it.

Hiring for support and want to talk through any of these?