diff --git a/fhem/FHEM/98_GoogleAuth.pm b/fhem/FHEM/98_GoogleAuth.pm
index 5f1ead0e6..210444679 100644
--- a/fhem/FHEM/98_GoogleAuth.pm
+++ b/fhem/FHEM/98_GoogleAuth.pm
@@ -331,17 +331,11 @@ sub gAuth {
Check the validity of a given token; return value is 1 for a valid token, otherwise -1.
- - Token always consists of six numerical digits and will change every 30 seconds.
- - Token is valid if it matches one of three tokens calculated by FHEM
- using three timestamps: -30 seconds, now and +30 seconds.
- This behavior can be changed by attribute ga_strictCheck.
+ - Token always consists of six numerical digits and will change every 30 seconds.
+ - Token is valid if it matches one of three tokens calculated by FHEM
+ using three timestamps: -30 seconds, now and +30 seconds.
+ This behavior can be changed by attribute ga_strictCheck.
-
-
- gAuth(<name>,<token>)
-
- For easy use in your own functions you can call function gAuth(),
- which will return same result codes as the "get" command.
@@ -372,6 +366,28 @@ sub gAuth {
+ Integration with gAuth()
+
+ gAuth(<name>,<token>)
+
+ For easy use in your own scenarios you can call function gAuth(),
+ which will return same result codes as the "get" command.
+
+
+ - Usage of gAuth() for login to FHEM
+
+ A device of TYPE=allowed can be used to secure login to FHEM via basicAuth.
+ attr <deviceName> basicAuth { "$user" eq "xxx" && gAuth("GoogleAuth","$password","<deviceName>") == 1 }
+
+ In both cases <deviceName> has to be the name of the allowed-TYPE device.
+ The authenticated login will be cached for this device for a maximum period of 86400 seconds.
+ Do not use basicAuthExpiry in this scenario!
+ The cache will be lost after FHEM restart or after any invalid token checked by the named allowed-TYPE device.
+
+
+
+
+
=end html
=begin html_DE