style(auth): remove service docstrings
Drop the temporary auth service method comments now that the key normalization behavior has been reviewed.pull/17212/head
parent
11e2c85336
commit
1739817ee7
|
|
@ -39,36 +39,9 @@ const fail = (message: string) => (cause: unknown) => new AuthServiceError({ mes
|
|||
|
||||
export namespace AuthService {
|
||||
export interface Service {
|
||||
/**
|
||||
* Loads the auth entry stored under the given key.
|
||||
*
|
||||
* Keys are usually provider IDs, but some callers store URL-shaped keys.
|
||||
*/
|
||||
readonly get: (providerID: string) => Effect.Effect<Info | undefined, AuthServiceError>
|
||||
|
||||
/**
|
||||
* Loads all persisted auth entries.
|
||||
*
|
||||
* Invalid entries are ignored instead of failing the whole file so older or
|
||||
* partially-corrupt auth records do not break unrelated providers.
|
||||
*/
|
||||
readonly all: () => Effect.Effect<Record<string, Info>, AuthServiceError>
|
||||
|
||||
/**
|
||||
* Stores an auth entry under a normalized key.
|
||||
*
|
||||
* URL-shaped keys are normalized by trimming trailing slashes. Before
|
||||
* writing, we delete both the original key and the normalized-with-slash
|
||||
* variant so historical duplicates collapse to one canonical entry.
|
||||
*/
|
||||
readonly set: (key: string, info: Info) => Effect.Effect<void, AuthServiceError>
|
||||
|
||||
/**
|
||||
* Removes the auth entry stored under the provided key.
|
||||
*
|
||||
* The raw key and its normalized form are both deleted so callers can pass
|
||||
* either version during cleanup.
|
||||
*/
|
||||
readonly remove: (key: string) => Effect.Effect<void, AuthServiceError>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue