bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

Dont create multiple access tokens when one has not expired yet for e… #1066

Open mitmelon opened 6 months ago

mitmelon commented 6 months ago

Dont create multiple access tokens when one has not expired yet for efficient purposes and security. Included this to avoid too much of new tokens creations when one has not expired - Also updated OAuth2\ResponseType\AccessToken to use the existing token that has not expired instead of creating a new one in MongoDB storage class.