dcblogdev / laravel-microsoft-graph

Laravel package for Microsoft Graph API (Microsoft365)
https://dcblog.dev/docs/laravel-microsoft-graph
Other
120 stars 51 forks source link

fix: search a token with a refresh token filled #65

Closed SonnySha closed 9 months ago

SonnySha commented 9 months ago

Context: User token has a refresh token filled in 'ms_graph_tokens' table. Application token doesn't have refresh token in 'ms_graph_tokens' table.

Probleme: if an 'Application token' is created in the 'ms_graph_tokens' table and If the $id in the function getTokenData is egal to 'null' the MsGraphToken model returned is the 'Application token'. This is not correct

dcblogdev commented 9 months ago

thank you.