# `GSEndpoint credentialWithPersistence:`

*Instance Method*

## Declaration

```swift
func credential(with persistence: URLCredential.Persistence) -> URLCredential?
```

```objc
- (NSURLCredential *) credentialWithPersistence:(NSURLCredentialPersistence) persistence;
```

```python
credentialWithPersistence_(persistence: NSURLCredentialPersistence) -> NSURLCredential
```

