How to handle optional params - Better Auth