mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
13 lines
449 B
TypeScript
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 {};
|
|
}
|
|
}
|