(clientId: string)
| 46 | } |
| 47 | |
| 48 | getClient(clientId: string): OAuthClientInformationFull | undefined { |
| 49 | const row = this.database.sqlite |
| 50 | .prepare("select client_json from oauth_clients where client_id = ?") |
| 51 | .get(clientId) as { client_json: string } | undefined; |
| 52 | |
| 53 | return row ? (JSON.parse(row.client_json) as OAuthClientInformationFull) : undefined; |
| 54 | } |
| 55 | |
| 56 | registerClient( |
| 57 | client: Omit<OAuthClientInformationFull, "client_id" | "client_id_issued_at">, |
no outgoing calls