()
| 49 | } |
| 50 | |
| 51 | const sessionEndpoint = (): string => { |
| 52 | const base = ( |
| 53 | env.NEXT_PUBLIC_CODEBUFF_APP_URL || 'https://codebuff.com' |
| 54 | ).replace(/\/$/, '') |
| 55 | return `${base}/api/v1/freebuff/session` |
| 56 | } |
| 57 | |
| 58 | async function callSession( |
| 59 | method: 'POST' | 'GET' | 'DELETE', |