ZhengHaoWeiPP / Facebook-Auth-Passport by ZhengHaoWei

Facebook Auth Request Grant for Laravel Passport - Modify from danjdewhurst/laravel-passport-facebook-login
11
0
0
Package Data
Maintainer Username: ZhengHaoWei
Maintainer Contact: jacob@mirk.co (Jacob Morris)
Package Create Date: 2017-11-14
Package Last Update: 2017-11-17
Language: PHP
License: MIT
Last Refreshed: 2024-12-23 03:16:19
Package Statistics
Total Downloads: 11
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 0
Total Forks: 0
Total Open Issues: 0

Install

Install with composer... composer require panelplace/laravel-facebook-auth-passport

Versions

  • Laravel 5.4 and Passport 2.0 only supported at this time

SETUP

To set the Expiry Token and Refresh Token Expiry add this 2 Line code into your Laravel .env file


    TOKEN_EXPIRY_IN = {{ Total day you want to set }}
    REFRESH_TOKEN_EXPIRY_IN = {{ Total day you want to set }}

EXAMPLE

    TOKEN_EXPIRY_IN = 15
    REFRESH_TOKEN_EXPIRY_IN = 30

*which mean the token will expired in 15 days and refresh token will expired in 30 days

Dependencies:

  • "laravel/passport": "^4.0"
  • "facebook/graph-sdk": "^5.6"

Credits:

  • https://github.com/danjdewhurst/Laravel-Passport-Facebook-Login
  • https://github.com/mirkco/Laravel-Passport-Facebook-Login
  • https://github.com/mikemclin/passport-custom-request-grant