| | 66 | |
| | 67 | /** |
| | 68 | * Saves user auth data into a cookie. |
| | 69 | * @param THttpCookie the cookie to receive the user auth data. |
| | 70 | * @since 3.1.1 |
| | 71 | */ |
| | 72 | public function saveUserToCookie($cookie) |
| | 73 | { |
| | 74 | // do nothing since we don't support cookie-based auth in this example |
| | 75 | } |
| | 76 | |
| | 77 | /** |
| | 78 | * Returns a user instance according to auth data stored in a cookie. |
| | 79 | * @param THttpCookie the cookie storing user authentication information |
| | 80 | * @return TUser the user instance generated based on the cookie auth data, null if the cookie does not have valid auth data. |
| | 81 | * @since 3.1.1 |
| | 82 | */ |
| | 83 | public function getUserFromCookie($cookie) |
| | 84 | { |
| | 85 | // do nothing since we don't support cookie-based auth in this example |
| | 86 | return null; |
| | 87 | } |