open-index/open-npm huggingface dataset:
npm package: @praveentcom/siwa-client-secret
Description: A simple generator for Apple ID client secret JWTs.
Author: Praveen Thirumurugan
Latest version: 2.0.1

# Apple ID Client Secret

The Apple ID REST API for exchanging authorization codes or refresh tokens for access tokens requires a client secret in the form of a signed JWT. This simple library will generate the signed JWT using minimal configuration.

Implementation based on [Generate and Validate Tokens](https://developer.apple.com/documentation/sign_in_with_apple/generate_and_validate_tokens) documentation from Apple and built using the [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken) package from Auth0.

## Install

```bash
$ npm install @praveentcom/siwa-client-secret
```

or

```bash
$ yarn add @praveentcom/siwa-client-secret
```

## Usage

```typescript
import { createClientSecret } from "@praveentcom/siwa-client-secret"

const clientSecret: string = createClientSecret({
  keyId: "{key ID from Apple}",
  bundleId: "com.example",
  teamId: "{team ID frmo Apple}",
  privateKey: `-----BEGIN PRIVATE KEY-----
    {your}
    {private}
    {key}
    -----END PRIVATE KEY-----`;
});
```

## License

This project is licensed under the MIT license. See the [LICENSE](LICENSE) file for more info.

## Attibutions

This project was originally forked from [@maxschmeling](https://github.com/maxschmeling)'s [repository] (https://github.com/maxschmeling/apple-id-client-secret) since the repository was not maintained to fix vulnerabilities and recent Sign in with Apple enhancements.
npm package: @pravesh701/chatbubble
Description:  A simple and fully customizable React Native component that make chat screen
Author: Pravesh Singh
Latest version: 1.2.6

# ChatBubble

A simple and fully customizable React Native component that make chat screen according to user needs.

## Installation / Getting Started

```
yarn add @pravesh701/chatbubble
```
or

```
npm  install @pravesh701/chatbubble --save
```

### Prerequisites

These props must passed when used it 
```
<ChatBubble
          InputTextValue={this.state.value}
          MessageArray={this.state.messages}
          sendMessageToServer={this._sendMethod}
          onChangeText={this._onChangeTextForSendMessage}
        />
```

```
1. InputTextValue
2. MessageArray
3. sendMessageToServer()
4. onChangeText()
```


### Example

```
import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import ChatBubble from '@pravesh701/chatbubble';

export default class App extends Component {

  state = {
    //your message array
    messages: [
      {
        msg: 'Heloo',
        id: Math.random(),
        token: '',
        email: '',
        type: 'server',
      },
      {
        msg: 'Server Message',
        id: Math.random(),
        token: '',
        email: '',
        type: 'server',
      },
    ],
    //for textInput
    value: '',
  };

  /**
   * send mesaage to server via payload or whole array
   */
  _sendMethod = (myArray, payload) => {
    this.setState({
      messages: myArray,
      value: '',
    });
    console.log("Recieved Call for sending user messages")
  }
  /**
   * To change Input Text Value
   */
  _onChangeTextForSendMessage = (value) => {
    this.setState({
      value: value
    })
  }

  render() {
    return (
      <View style={styles.container}>
        <ChatBubble
          InputTextValue={this.state.value}
          MessageArray={this.state.messages}
          sendMessageToServer={this._sendMethod}
          onChangeText={this._onChangeTextForSendMessage}
        />
      </View>
    );
  }
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
  },
});

```

## Contributing

Please read [Visit](https://github.com/Pravesh701/ChatBubbleNPM.git) for details on our code of conduct, and the process for submitting pull requests to us.


## Authors

* **Pravesh Singh** - *Initial work* - [Github](https://github.com/Pravesh701)


## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## ScreenShots

![picture](ChatBubble.png)

## Acknowledgments

* Inspiration by react native chat bubble