<commit_before># Telegram Unofficial OAuth2 Provider for Laravel Socialite

**Note:** This package utilizes an unofficial service [telepass.me](https://telepass.me). Official OAuth API for Telegram does not exist.

## Installation

### 0. Credentials
Obtain your app ID and secret from [telepass.me](https://telepass.me). You must set up a valid name and callback URL.

### 1. Composer
This assumes that you have composer installed globally:
```bash
composer require telegram/passport-laravel
```

### 2. Service Provider
- Remove `Laravel\Socialite\SocialiteServiceProvider` from your `providers[]` array in `config\app.php` if you have added it already.
- Add `\SocialiteProviders\Manager\ServiceProvider::class` to your `providers[]` array in `config\app.php`.

For example:

```php
'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',<commit_msg>Added styleci badge<commit_after>[![StyleCI](https://styleci.io/repos/69769315/shield?branch=master)](https://styleci.io/repos/69769315)

# Telegram Unofficial OAuth2 Provider for Laravel Socialite

**Note:** This package utilizes an unofficial service [telepass.me](https://telepass.me). Official OAuth API for Telegram does not exist.

## Installation

### 0. Credentials
Obtain your app ID and secret from [telepass.me](https://telepass.me). You must set up a valid name and callback URL.

### 1. Composer
This assumes that you have composer installed globally:
```bash
composer require telegram/passport-laravel
```

### 2. Service Provider
- Remove `Laravel\Socialite\SocialiteServiceProvider` from your `providers[]` array in `config\app.php` if you have added it already.
- Add `\SocialiteProviders\Manager\ServiceProvider::class` to your `providers[]` array in `config\app.php`.

For example:

```php
'providers' => [
    // a whole bunch of providers
    // remove 'Laravel\Socialite\SocialiteServiceProvider',
{'fraction_non_alphanumeric': 0.1193565127140633, 'fraction_numerical': 0.012454592631032694, 'mean_word_length': 4.878048780487805, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5053029', 'n_tokens_mistral': 610, 'n_tokens_neox': 551, 'n_words': 191}