aws-amplify / aws-amplify/amplify-cli

improve validation on `sign in with apple` private key

Open
#13,065 2 comments 0 reactions 0 assignees View on GitHub
auth feature-request good first issue p3
Dominant language
TypeScript
Stars
2.9k
Forks
825
Avg merge
11d 23h
Merged PRs (30d)
2

Description

### How did you install the Amplify CLI?

_No response_

### If applicable, what version of Node.js are you using?

_No response_

### Amplify CLI Version

12.2.3

### What operating system are you using?

mac

### Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

no

### Describe the bug

It appears the validation on CLI allows just typing in the begin and end of the private key
![image (8)](https://github.com/aws-amplify/amplify-cli/assets/87995712/249450f0-c77c-4d96-9299-df9a2347c141)

### Expected behavior

validate and throw appropriate message

### Reproduction steps

1. add auth
2. select `signin with apple`
3. enter the begin and end without the hash key
4. observe no errors

### Project Identifier

_No response_

### Log output

```
# Put your logs below this line

```

### Additional information

_No response_

### Before submitting, please confirm:

- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.