Ensure that when user session expires - the user is redirected back to the provider login page.

This commit is contained in:
2024-07-25 09:54:31 +01:00
parent c588d6cd4d
commit 622b11f586
71 changed files with 29130 additions and 2 deletions
+17
View File
@@ -0,0 +1,17 @@
package objx
// Has gets whether there is something at the specified selector
// or not.
//
// If m is nil, Has will always return false.
func (m Map) Has(selector string) bool {
if m == nil {
return false
}
return !m.Get(selector).IsNil()
}
// IsNil gets whether the data is nil or not.
func (v *Value) IsNil() bool {
return v == nil || v.data == nil
}