added Instagram OAuth2 provider deprecation log

This commit is contained in:
Gani Georgiev
2024-10-18 16:05:44 +03:00
parent cbc88d7a01
commit 3786e0816d
+4
View File
@@ -129,6 +129,10 @@ func (form *RecordOAuth2Login) Submit(
return nil, nil, err
}
if form.Provider == auth.NameInstagram {
form.app.Logger().Warn("Instagram OAuth2 provider is deprecated and will stop working after December 4th. For more details please check https://github.com/pocketbase/pocketbase/discussions/5652.")
}
ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
defer cancel()