func (storage *InMemoryCredentialStorage) GetCredential(ctx context.Context, credentialID []byte) (*Credential, error) {
	credential, ok := storage.m[string(credentialID)]
	if !ok {
		return nil, ErrCredentialNotFound
	}
	return credential, nil
}
// GetCredential gets the credential from the map.
GetCredential gets the credential from the map.
// GetCredential gets the credential from the map .
func (storage *InMemoryCredentialStorage) GetCredential(ctx context.Context, credentialID []byte) (*Credential, error) {
	credential, ok := storage.m[string(credentialID)]
	if !ok {
		return nil, ErrCredentialNotFound
	}
	return credential, nil
}
func ( storage * InMemoryCredentialStorage ) GetCredential ( ctx context . Context , credentialID [ ] byte ) ( * Credential , error ) { credential , ok := storage . m [ string ( credentialID ) ] if ! ok { return nil , ErrCredentialNotFound } return credential , nil }
GetCredential gets the credential from the map.
GetCredential gets the credential from the map .