CommunitySolidServer/src/authentication/PublicCredentialsExtractor.ts
2022-10-06 09:36:04 +02:00

13 lines
449 B
TypeScript

import type { Credentials } from './Credentials';
import { CredentialsExtractor } from './CredentialsExtractor';
/**
* Extracts the "public credentials", to be used for data everyone has access to.
* This class mainly exists so a {@link Credentials} is still generated in case the token parsing fails.
*/
export class PublicCredentialsExtractor extends CredentialsExtractor {
public async handle(): Promise<Credentials> {
return {};
}
}