open-index/open-npm huggingface dataset:
npm package: @powerdot/verify-apple-id-token
Description: Verify the Apple id token on the server side.
Author: Stefan Prokop
Latest version: 3.0.2

[![Build Status](https://github.com/stefan-prokop-cz/verify-apple-id-token/workflows/Build/badge.svg)](https://github.com/stefan-prokop-cz/verify-apple-id-token/actions)
[![Publish Status](https://github.com/stefan-prokop-cz/verify-apple-id-token/workflows/Publish/badge.svg)](https://github.com/stefan-prokop-cz/verify-apple-id-token/actions)
[![npm version](https://img.shields.io/npm/v/verify-apple-id-token)](https://www.npmjs.com/package/verify-apple-id-token)
[![codecov](https://codecov.io/gh/stefan-prokop-cz/verify-apple-id-token/branch/master/graph/badge.svg?token=TD7C0Z3YA6)](https://codecov.io/gh/stefan-prokop-cz/verify-apple-id-token)

# Verify Apple idToken

- Small utility which verifies the Apple idToken
- You can use it on the backend side
- Token verification is part of [Apple sign-in](https://developer.apple.com/documentation/signinwithapplerestapi) process
- The flow is
  - Client app (iOS or Android) will redirect user to the OAuth2 login screen
  - User will login
  - App will receive the tokens
  - App should send the `idToken` to the backend which will verify it
- [Verification steps implemented](https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_rest_api/verifying_a_user):
  - Verify the JWS E256 signature using the server’s public key
  - Verify the nonce for the authentication
  - Verify that the iss field contains https://appleid.apple.com
  - Verify that the aud field is the developer’s client_id
  - Verify that the time is earlier than the exp value of the token

## Installation

```bash
npm install verify-apple-id-token
```

## Usage

### Typescript

```typescript
import verifyAppleToken from "verify-apple-id-token";

const jwtClaims = await verifyAppleToken({
  idToken: "yourIdToken",
  clientId: "yourAppleClientId",
  nonce: "nonce", // optional
});

jwtClaims.email; // get email of the user
```

### Javascript

```javascript
const verifyAppleToken = require("verify-apple-id-token").default;

const jwtClaims = await verifyAppleToken({
  idToken: "yourIdToken",
  clientId: "yourAppleClientId",
  nonce: "nonce", // optional
});
```

## Contribution

Thank you for your interest in contributing to `verify-apple-id-token`! Please see the [CONTRIBUTING.md](./CONTRIBUTING.md) to learn how to do it!

## License

[MIT](./LICENSE)
npm package: @powered-up/api
Description: A reactive library for controlling LEGO® Powered Up devices.
Author: Clemens Akens
Latest version: 0.4.0
Deprecated: Package no longer supported. Use at your own risk.

# @powered-up/api

[![Package Version](https://img.shields.io/npm/v/@powered-up/api.svg)](https://yarnpkg.com/en/package/@powered-up/api)

> A reactive library for controlling LEGO® Powered Up devices.

**This package is part of
[PoweredUpJS](https://github.com/clebert/powered-up).**

_Disclaimer: LEGO® is a trademark of the LEGO Group of companies which does not
sponsor, authorize or endorse this software._

## Getting started

Install `@powered-up/api` as a dependency:

```sh
# Install using Yarn
yarn add @powered-up/api
```

```sh
# Install using npm
npm install @powered-up/api
```

### Installation problems under Node 10 on macOS 10.13.4

[noble](https://github.com/noble/noble/issues/791) is used to establish the BLE
connection, it requires xpc-connection on macOS, which currently cannot be
installed without errors. Until the problem is officially fixed, the following
must be added to your `package.json` file:

```json
"resolutions": {
  "xpc-connection": "sandeepmistry/node-xpc-connection#pull/26/head"
}
```

---

Copyright (c) 2018-present, Clemens Akens. Released under the terms of the
[MIT License](https://github.com/clebert/powered-up/blob/master/LICENSE).
npm package: @powered-up/ble
Description: A reactive library for managing BLE connections to LEGO® Powered Up hubs.
Author: Clemens Akens
Latest version: 0.4.0
Deprecated: Package no longer supported. Use at your own risk.

# @powered-up/ble

[![Package Version](https://img.shields.io/npm/v/@powered-up/ble.svg)](https://yarnpkg.com/en/package/@powered-up/ble)

> A reactive library for managing BLE connections to LEGO® Powered Up hubs.

**This package is part of
[PoweredUpJS](https://github.com/clebert/powered-up).**

_Disclaimer: LEGO® is a trademark of the LEGO Group of companies which does not
sponsor, authorize or endorse this software._

## Getting started

Install `@powered-up/ble` as a dependency:

```sh
# Install using Yarn
yarn add @powered-up/ble
```

```sh
# Install using npm
npm install @powered-up/ble
```

### Installation problems under Node 10 on macOS 10.13.4

[noble](https://github.com/noble/noble/issues/791) is used to establish the BLE
connection, it requires xpc-connection on macOS, which currently cannot be
installed without errors. Until the problem is officially fixed, the following
must be added to your `package.json` file:

```json
"resolutions": {
  "xpc-connection": "sandeepmistry/node-xpc-connection#pull/26/head"
}
```

---

Copyright (c) 2018-present, Clemens Akens. Released under the terms of the
[MIT License](https://github.com/clebert/powered-up/blob/master/LICENSE).
npm package: @powered-up/protocol
Description: A partial implementation of the LEGO® Powered Up BLE protocol in JavaScript.
Author: Clemens Akens
Latest version: 0.4.0
Deprecated: Package no longer supported. Use at your own risk.

# @powered-up/protocol

[![Package Version](https://img.shields.io/npm/v/@powered-up/protocol.svg)](https://yarnpkg.com/en/package/@powered-up/protocol)

> A partial implementation of the LEGO® Powered Up BLE protocol in JavaScript.

**This package is part of
[PoweredUpJS](https://github.com/clebert/powered-up).**

_Disclaimer: LEGO® is a trademark of the LEGO Group of companies which does not
sponsor, authorize or endorse this software._

## Getting started

Install `@powered-up/protocol` as a dependency:

```sh
# Install using Yarn
yarn add @powered-up/protocol
```

```sh
# Install using npm
npm install @powered-up/protocol
```

---

Copyright (c) 2018-present, Clemens Akens. Released under the terms of the
[MIT License](https://github.com/clebert/powered-up/blob/master/LICENSE).
npm package: @poweredbygrow/react-scripts
Description: Configuration and scripts for Create React App.
Latest version: 2.1.11

# react-scripts

This package includes scripts and configuration used by [Create React App](https://github.com/facebook/create-react-app).<br>
Please refer to its documentation:

- [Getting Started](https://facebook.github.io/create-react-app/docs/getting-started) – How to create a new app.
- [User Guide](https://facebook.github.io/create-react-app/) – How to develop apps bootstrapped with Create React App.